Skip to content

Commit

Permalink
Dropped Laravel 9 and PHP 8.0 support
Browse files Browse the repository at this point in the history
- Upgraded to PHPUnit 10
  • Loading branch information
fulopattila122 committed Feb 28, 2024
1 parent 2ff3427 commit ffd5bba
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
php: ['8.0', '8.1', '8.2', '8.3']
laravel: ['9.2', '9.52', '10.0', '10.46', '11.x']
php: ['8.1', '8.2', '8.3']
laravel: ['10.0', '10.46', '11.x']
enum: ['2', '3', '4']
exclude:
- php: '8.0'
laravel: '10.0'
- php: '8.0'
laravel: '10.46'
- php: '8.0'
laravel: '11.x'
- php: '8.1'
laravel: '11.x'
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }} Enum ${{ matrix.enum }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
composer.lock
.idea/
.phpunit.result.cache
.phpunit.cache/**
phpunit.xml
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
##### 2024-01-08

- Added Laravel 11 support
- Dropped PHP 8.0 support
- Dropped Laravel 9 support (EOL)

### 1.7.0
##### 2023-11-13
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"require": {
"php": "^8.0",
"ext-PDO": "*",
"illuminate/database": "^9.0|^10.0|^11.0",
"illuminate/database": "^10.0|^11.0",
"konekt/enum": "^2.1 | ^3.0 | ^4.0"
},
"require-dev": {
"phpunit/phpunit": "9 - 10",
"orchestra/testbench": "7 - 9"
"phpunit/phpunit": "^10.0",
"orchestra/testbench": "^8.0|^9.0"
},
"autoload": {
"psr-4": { "Konekt\\LaravelMigrationCompatibility\\": "src/" }
Expand Down
12 changes: 6 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage>
<include>
<directory suffix="Test.php">src/</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Laravel Migration Compatibility Test Suite">
<directory>tests</directory>
Expand All @@ -18,4 +13,9 @@
<!-- <env name="TEST_DB_PASSWORD" value="password"/>-->
<!-- <env name="TEST_DB_ENGINE" value="mysql"/>-->
</php>
<source>
<include>
<directory suffix="Test.php">src/</directory>
</include>
</source>
</phpunit>

0 comments on commit ffd5bba

Please sign in to comment.