Skip to content

Commit

Permalink
Drop Laravel 8.x & 9.x support (#9)
Browse files Browse the repository at this point in the history
* Drop Laravel 8.x & 9.x support

Upgrade to PHPUnit 11.x

* Drop PHP 8.0 & 8.1 support
  • Loading branch information
dmason30 authored Mar 13, 2024
1 parent 9c8f0d1 commit 8d0cc4a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

Expand Down
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']
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

8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
}
],
"require": {
"php": "^8.0",
"illuminate/database": "^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0"
"php": "^8.2",
"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 8d0cc4a

Please sign in to comment.