Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add laravel 11 support #362

Closed
wants to merge 12 commits into from
24 changes: 19 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,21 @@ jobs:
fail-fast: true
matrix:
php: [8.3, 8.2, 8.0]
laravel: [^10.0, ^9.0]
laravel: [^11.0, ^10.0, ^9.0]
dependencies: [lowest, highest]
include:
- laravel: ^11.0
testbench: ^9.0
- laravel: ^10.0
testbench: ^8.0
- laravel: ^9.0
testbench: ^7.0
exclude:
- php: 8.0
laravel: ^10.0
- laravel: ^10.0
php: 8.0
- laravel: ^11.0
php: 8.0

name: Acceptance P${{ matrix.php }} | L${{ matrix.laravel }} | ${{ matrix.dependencies == 'highest' && '↑' || '↓' }}
steps:
- name: Checkout code
Expand All @@ -71,11 +81,15 @@ jobs:

- name: Install lowest dependencies from composer.json
if: "matrix.dependencies == 'lowest'"
run: composer update --with='laravel/framework:${{ matrix.laravel }}' --no-interaction --no-progress --prefer-dist --prefer-stable --prefer-lowest
run: |
composer require 'laravel/framework:${{ matrix.laravel }}' 'orchestra/testbench:${{ matrix.testbench }}' --no-interaction --no-update
composer update --no-progress --prefer-lowest --prefer-dist --prefer-stable --no-interaction

- name: Install highest dependencies from composer.json
if: "matrix.dependencies == 'highest'"
run: composer update --with='laravel/framework:${{ matrix.laravel }}' --no-interaction --no-progress --prefer-dist --prefer-stable
run: |
composer require 'laravel/framework:${{ matrix.laravel }}' 'orchestra/testbench:${{ matrix.testbench }}' --no-interaction --no-update
composer update --no-progress --prefer-dist --prefer-stable --no-interaction

- name: Run Acceptance Tests
run: composer test:type
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
"require": {
"php": "^8.0.2",
"ext-simplexml": "*",
"barryvdh/laravel-ide-helper": "^2.13",
"illuminate/config": "^9.48 || ^10.0",
"illuminate/container": "^9.48 || ^10.0",
"illuminate/contracts": "^9.48 || ^10.0",
"illuminate/database": "^9.48 || ^10.0",
"illuminate/events": "^9.48 || ^10.0",
"illuminate/http": "^9.48 || ^10.0",
"illuminate/routing": "^9.48 || ^10.0",
"illuminate/support": "^9.48 || ^10.0",
"illuminate/view": "^9.48 || ^10.0",
"barryvdh/laravel-ide-helper": "*",
"illuminate/config": "^9.48 || ^10.0 || ^11.0",
"illuminate/container": "^9.48 || ^10.0 || ^11.0",
"illuminate/contracts": "^9.48 || ^10.0 || ^11.0",
"illuminate/database": "^9.48 || ^10.0 || ^11.0",
"illuminate/events": "^9.48 || ^10.0 || ^11.0",
"illuminate/http": "^9.48 || ^10.0 || ^11.0",
"illuminate/routing": "^9.48 || ^10.0 || ^11.0",
"illuminate/support": "^9.48 || ^10.0 || ^11.0",
"illuminate/view": "^9.48 || ^10.0 || ^11.0",
"nikic/php-parser": "^4.13",
"orchestra/testbench": "^7.19 || ^8.0",
"symfony/console": "^6.0",
"orchestra/testbench": "^7.19 || ^8.0 || ^9.0",
"symfony/console": "^6.0 || ^7.0",
"vimeo/psalm": "^4.30 || ^5.1"
},
"require-dev": {
Expand All @@ -38,7 +38,7 @@
"ramsey/collection": "^1.3",
"slevomat/coding-standard": "^8.8",
"squizlabs/php_codesniffer": "*",
"symfony/http-foundation": "^6.0"
"symfony/http-foundation": "^6.0 || ^7.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down