Skip to content

Commit

Permalink
Merge pull request #27 from YunusEmreNalbant/master
Browse files Browse the repository at this point in the history
add support for Laravel 11 and PHP 8.3 support
  • Loading branch information
YunusEmreNalbant authored Jun 26, 2024
2 parents 71f08f7 + 64d527e commit b94b05b
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 31 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1, 8.2]
laravel: [10.*, 9.*]
php: [8.1, 8.2, 8.3]
laravel: [11.*, 10.*, 9.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ vendor
composer.lock
.phpunit.result.cache
.phpunit.cache
phpunit.xml.dist.bak
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"homepage": "https://github.com/deligoez/tckimlikno",
"keywords": ["laravel", "package", "validation", "tckimlikno", "mernis"],
"require": {
"php": "^8.1 | ^8.2",
"illuminate/support": "^9.0 | ^10.0",
"ricorocks-digital-agency/soap": "^1.6",
"php": "^8.1 | ^8.2 | ^8.3",
"illuminate/support": "^9.0 | ^10.0 | ^11.0",
"ricorocks-digital-agency/soap": "^1.6 | 2.*",
"guzzlehttp/guzzle": "^7.2.0"
},
"require-dev": {
"mockery/mockery": "^1.5",
"fakerphp/faker": "^1.19",
"orchestra/testbench": "^7.5",
"phpunit/phpunit": "^9.5"
"orchestra/testbench": "^7.5 | ^8.0 | ^9.0",
"phpunit/phpunit": "^9.5 | ^10.5"
},
"autoload": {
"psr-4": {
Expand Down
42 changes: 18 additions & 24 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuites>
<testsuite name="Spatie Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<testsuites>
<testsuite name="Spatie Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
31 changes: 31 additions & 0 deletions phpunit.xml.dist.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
>
<testsuites>
<testsuite name="Spatie Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
</phpunit>

0 comments on commit b94b05b

Please sign in to comment.