Skip to content

Commit 68a4b6c

Browse files
authored
add laravel 11 support (#12)
add laravel 11 support
1 parent daf239b commit 68a4b6c

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/run-tests.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,18 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest]
1616
php: [8.3, 8.2, 8.1]
17-
laravel: [10,9]
17+
laravel: ["^11.0", "^10.0", "^9.0"]
1818
stability: [prefer-lowest, prefer-stable]
19+
include:
20+
- laravel: "^11.0"
21+
testbench: 9.*
22+
- laravel: "^10.0"
23+
testbench: 8.*
24+
- laravel: "^9.0"
25+
testbench: 7.*
26+
exclude:
27+
- laravel: "^11.0"
28+
php: 8.1
1929

2030
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2131

@@ -37,8 +47,8 @@ jobs:
3747
3848
- name: Install dependencies
3949
run: |
40-
composer require 'illuminate/contracts=^${{ matrix.laravel }}.0' --no-update
50+
composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update
4151
composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }}
4252
4353
- name: Execute tests
44-
run: vendor/bin/pest --verbose
54+
run: vendor/bin/pest

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
"require": {
1919
"php": "^8.1",
2020
"spatie/laravel-package-tools": "^1.13.0",
21-
"illuminate/contracts": "^9.0|^10.0"
21+
"illuminate/contracts": "^9.0|^10.0|^11.0"
2222
},
2323
"require-dev": {
2424
"laravel/pint": "^1.0",
25-
"nunomaduro/collision": "^6.0",
25+
"nunomaduro/collision": "^6.0|^7.0|^8.0",
2626
"nunomaduro/larastan": "^2.0.1",
27-
"orchestra/testbench": "^7.0|^8.0",
28-
"pestphp/pest": "^1.21",
29-
"pestphp/pest-plugin-laravel": "^1.1"
27+
"orchestra/testbench": "^7.0|^8.0|^9.0",
28+
"pestphp/pest": "^1.0|^2.0",
29+
"pestphp/pest-plugin-laravel": "^1.0|^2.0"
3030
},
3131
"autoload": {
3232
"psr-4": {

0 commit comments

Comments
 (0)