Skip to content

Commit

Permalink
feat: Laravel 11.x Compatibility (#27)
Browse files Browse the repository at this point in the history
* feat: Laravel 11.x Compatibility

* WIP

* Update phpunit.xml.dist

* WIP

* WIP
  • Loading branch information
ralphjsmit authored Mar 14, 2024
1 parent d20baf3 commit b289d8f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 47 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,20 @@ jobs:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [ 8.1, 8.2 ]
laravel: [ 8.*, 9.* , 10.* ]
php: [ 8.1, 8.2, 8.3 ]
laravel: [ 9.* , 10.*, 11.* ]
stability: [ prefer-lowest, prefer-stable ]
include:
- laravel: 10.*
testbench: ^8.0
- laravel: 9.*
testbench: ^7.0
- laravel: 8.*
testbench: ^6.23
- laravel: 10.*
testbench: ^8.0
- laravel: 11.*
testbench: ^9.0

exclude:
- php: 8.1
laravel: 11.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"require" : {
"php" : "^8.0",
"filament/forms" : "^3.0",
"illuminate/contracts" : "^8.73|^9.0|^10.0",
"illuminate/contracts" : "^9.52|^10.0|^11.0",
"spatie/laravel-package-tools" : "^1.9.2"
},
"require-dev" : {
"nunomaduro/collision" : "^5.10|^6.0|^7.0",
"orchestra/testbench" : "^6.22|^7.0|^8.0",
"pestphp/pest" : "^1.21",
"pestphp/pest-plugin-laravel" : "^1.1",
"nunomaduro/collision" : "^6.0|^7.0|^8.0",
"orchestra/testbench" : "^7.0|^8.0|^9.0",
"pestphp/pest" : "^1.21|^2.0",
"pestphp/pest-plugin-laravel" : "^1.1|^2.0",
"phpunit/phpunit" : "^9.5|^10.0",
"spatie/laravel-ray" : "^1.26",
"spatie/pest-plugin-test-time" : "^1.0",
"nesbot/carbon" : "^2.66"
"spatie/pest-plugin-test-time" : "^1.0|^2.0",
"nesbot/carbon" : "^2.66|^3.0"
},
"autoload" : {
"psr-4" : {
Expand Down
50 changes: 16 additions & 34 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<testsuites>
<testsuite name="RalphJSmit Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="RalphJSmit Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>

0 comments on commit b289d8f

Please sign in to comment.