Skip to content

Commit

Permalink
Drop Laravel 8.x & 9.x support
Browse files Browse the repository at this point in the history
Upgrade to PHPUnit 11.x
  • Loading branch information
dmason30 committed Mar 13, 2024
1 parent 9c8f0d1 commit 9d6821b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 26 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: ['8.3', '8.2', '8.1', '8.0']
laravel: [^8.0, ^9.0, ^10.0, ^11.0]
php: ['8.3', '8.2', '8.1']
laravel: [^10.0, ^11.0]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- php: 8.1
laravel: ^11.0
- php: 8.0
laravel: ^11.0
- php: 8.0
laravel: ^10.0

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

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ composer.lock
docs
vendor
coverage
.phpunit.result.cache
.phpunit.cache
.idea
.php_cs.cache

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
],
"require": {
"php": "^8.0",
"illuminate/database": "^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0"
"illuminate/database": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0"
},
"require-dev": {
"phpunit/phpunit": "^9.4",
"phpunit/phpunit": "^11.0",
"vimeo/psalm": "^6.0"
},
"autoload": {
Expand Down
34 changes: 18 additions & 16 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
cacheDirectory=".phpunit.cache"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/coverage.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Unit">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging/>
<coverage>
<report>
<clover outputFile="build/coverage.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Unit">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging/>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>

0 comments on commit 9d6821b

Please sign in to comment.