Skip to content

Commit e7a9119

Browse files
committed
[TASK] Allow laravel 11
1 parent c7921ad commit e7a9119

File tree

4 files changed

+1010
-819
lines changed

4 files changed

+1010
-819
lines changed

.github/workflows/test.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@ jobs:
1818
php:
1919
- '8.1'
2020
- '8.2'
21+
- '8.3'
2122
- 'nightly'
2223

2324
laravel:
2425
- '9.0'
2526
- '10.0'
27+
- '11.0'
2628

2729
include:
28-
- php: '8.2'
29-
laravel: '10.0'
30+
- php: '8.3'
31+
laravel: '11.0'
3032
stable: true
3133
- php: 'nightly'
3234
experimental: true
@@ -35,6 +37,8 @@ jobs:
3537
testbench: '7.0'
3638
- laravel: '10.0'
3739
testbench: '8.0'
40+
- laravel: '11.0'
41+
testbench: '9.0'
3842

3943
steps:
4044
- name: Checkout
@@ -48,8 +52,13 @@ jobs:
4852
coverage: pcov
4953

5054
- name: Remove platform from Composer file
55+
if: ${{ matrix.php }} == 'nightly'
5156
run: composer config --unset platform
5257

58+
- name: Set platform
59+
if: ${{ matrix.php }} != 'nightly'
60+
run: composer config platform.php ${{ matrix.php }}
61+
5362
- name: Configure to use Laravel ${{ matrix.laravel }} with Testbench ${{ matrix.testbench }}
5463
run: |
5564
composer require --no-update laravel/laravel:^${{ matrix.laravel }}

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
"ext-json": "*",
1616
"codex-team/editor.js": "*",
1717
"guzzlehttp/guzzle": "^6.0 || ^7.0",
18-
"illuminate/support": "^8.0 || ^9.0 || ^10.0",
19-
"illuminate/events": "^8.0 || ^9.0 || ^10.0",
18+
"illuminate/support": "^8.0 || ^9.0 || ^10.0 || ^11.0",
19+
"illuminate/events": "^8.0 || ^9.0 || ^10.0 || ^11.0",
2020
"laravel/nova": "^4.0",
21-
"spatie/image": "^1.7 || ^2.0"
21+
"spatie/image": "^1.7 || ^2.0 || ^3.0"
2222
},
2323
"require-dev": {
2424
"friendsofphp/php-cs-fixer": "^3.9",
25-
"orchestra/testbench": "^6.0 || ^7.0 || ^8.0",
25+
"orchestra/testbench": "^6.0 || ^7.0 || ^8.0 || ^9.0",
2626
"php-parallel-lint/php-parallel-lint": "^1.3"
2727
},
2828
"autoload": {

0 commit comments

Comments
 (0)