Skip to content

Commit

Permalink
feat: Adds support for Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
joemugen committed Apr 4, 2024
1 parent 09230c4 commit 1bdc5fa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ "8.1", "8.2" ]
laravel: [ "^9.0", "^10.0" ]
php: ["8.3", "8.2", "8.1"]
laravel: ["^11.0", "^10.0", "^9.0"]
dependency-version: [ prefer-lowest, prefer-stable ]
exclude:
- laravel: "^11.0"
php: "8.1"
include:
- laravel: "^11.0"
testbench: 9.*
- laravel: "^10.0"
testbench: 8.*
- laravel: "^9.0"
testbench: 7.*

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

Expand All @@ -36,7 +46,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --dev --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" --dev --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@
],
"require": {
"php": "^8.1",
"illuminate/database": "^9|^10",
"illuminate/support": "^9|^10",
"illuminate/database": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"nesbot/carbon": ">=2.62.1"
},
"require-dev": {
"ciareis/bypass": "^1.0",
"dg/bypass-finals": "^1.4",
"guzzlehttp/guzzle": "^7.8",
"laravel/pint": "^1.3",
"orchestra/testbench": "7.*|8.*",
"pestphp/pest": "^1.21",
"phpunit/phpunit": "^9.1"
"orchestra/testbench": "^7.0|^8.0|^9.0.2",
"pestphp/pest": "^1.21|^2.0",
"phpunit/phpunit": "^9.4 || ^10.5 || ^11.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 1bdc5fa

Please sign in to comment.