Skip to content

Commit

Permalink
Add Laravel 9 support (#103)
Browse files Browse the repository at this point in the history
* Update constraints

* Update tests workflow

* Update orchestra/database constraint

* Fix which Laravel version is tested on which PHP version
  • Loading branch information
stefanzweifel authored Jan 18, 2022
1 parent dde045c commit cec0768
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ jobs:

strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4, 8.0]
laravel: [5.8.*, 6.*, 7.*, 8.*]
php: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
laravel: [5.8.*, 6.*, 7.*, 8.*, 9.*]
os: [ubuntu-latest]
include:
- laravel: 9.*
testbench: 7.*
database: 7.*
- laravel: 8.*
testbench: 6.*
database: 6.*
Expand All @@ -32,14 +35,28 @@ jobs:
exclude:
- laravel: 5.8.*
php: 8.0
- laravel: 5.8.*
php: 8.1
- laravel: 6.*
php: 7.1
- laravel: 6.*
php: 8.1
- laravel: 7.*
php: 7.1
- laravel: 7.*
php: 8.1
- laravel: 8.*
php: 7.1
- laravel: 8.*
php: 7.2
- laravel: 9.*
php: 7.1
- laravel: 9.*
php: 7.2
- laravel: 9.*
php: 7.3
- laravel: 9.*
php: 7.4

name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
],
"require": {
"php": "^7.1.3|^8.0",
"illuminate/database": "^5.8 || ^6.0 || ^7.0 || ^8.0",
"illuminate/support": "^5.8 || ^6.0 || ^7.0 || ^8.0"
"illuminate/database": "^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/support": "^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
},
"require-dev": {
"doctrine/dbal": "^2.9",
"orchestra/database": "3.8.* || 3.9.* || ^4.0 || ^5.0",
"orchestra/testbench": "3.8.* || 3.9.* || ^4.0 || ^6.0",
"orchestra/database": "3.8.* || 3.9.* || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"orchestra/testbench": "3.8.* || 3.9.* || ^4.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^7.5 || ^8.4 || ^9.0"
},
"autoload": {
Expand Down

0 comments on commit cec0768

Please sign in to comment.