Skip to content

Commit 3c04f37

Browse files
committed
Add support for laravel 11
1 parent b841feb commit 3c04f37

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/run-tests.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
laravel: [9.*, 10.*]
16+
laravel: [9.*, 10.*, 11.*]
1717
php: [8.1, 8.2, 8.3]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
2020
- laravel: 9.*
2121
testbench: 7.*
2222
- laravel: 10.*
2323
testbench: 8.*
24+
- laravel: 11.*
25+
testbench: 9.*
26+
exclude:
27+
- laravel: 11.*
28+
php: 8.1
2429

2530
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2631

@@ -42,8 +47,8 @@ jobs:
4247
4348
- name: Install dependencies
4449
run: |
45-
composer remove larastan/larastan tomasvotruba/bladestan --dev --no-interaction --no-update --ignore-platform-reqs
46-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:2.62.1" --no-interaction --no-update --ignore-platform-reqs
50+
composer remove larastan/larastan tomasvotruba/bladestan rector/rector infection/infection --dev --no-interaction --no-update --ignore-platform-reqs
51+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --ignore-platform-reqs
4752
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4853
4954
- name: Execute tests

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
"require": {
1919
"php": "^8.0",
2020
"spatie/laravel-package-tools": "^1.9.2",
21-
"illuminate/contracts": "^9.0|^10.0"
21+
"illuminate/contracts": "^9.0 || ^10.0 || ^11.0"
2222
},
2323
"require-dev": {
2424
"infection/infection": "^0.26.13",
2525
"larastan/larastan": "^2.8",
2626
"laravel/pint": "^v1.4.1",
27-
"nunomaduro/collision": "^6.0|^7.0",
27+
"nunomaduro/collision": "^6.0 || ^7.0 || ^8.0",
2828
"nunomaduro/phpinsights": "^2.6",
29-
"orchestra/testbench": "^7.0|^8.0",
30-
"pestphp/pest": "^1.22|^2.0",
31-
"pestphp/pest-plugin-laravel": "^1.1|^2.0",
29+
"orchestra/testbench": "^7.0 || ^8.0",
30+
"pestphp/pest": "^1.22 || ^2.0",
31+
"pestphp/pest-plugin-laravel": "^1.1 || ^2.0 || ^3.0",
3232
"phpstan/extension-installer": "^1.1",
3333
"phpstan/phpstan-deprecation-rules": "^1.0",
3434
"phpstan/phpstan-phpunit": "^1.0",

0 commit comments

Comments
 (0)