Skip to content

Commit 5213d11

Browse files
committed
Add Laravel 12 support
1 parent c162fcb commit 5213d11

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

.github/workflows/run-tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,21 @@ jobs:
1717
fail-fast: true
1818
matrix:
1919
os: [ubuntu-latest, windows-latest]
20-
php: [8.3, 8.2]
21-
laravel: [11.*, 10.*]
20+
php: [8.4, 8.3, 8.2, 8.1]
21+
laravel: ["^12.0", "^11.0", "^10.0"]
2222
stability: [prefer-lowest, prefer-stable]
2323
include:
24+
- laravel: "^12.0"
25+
testbench: 10.*
2426
- laravel: 11.*
2527
testbench: 9.*
2628
carbon: ^2.63
2729
- laravel: 10.*
2830
testbench: 8.*
2931
carbon: ^2.63
32+
exclude:
33+
- laravel: "^12.0"
34+
php: 8.1
3035

3136
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3237

@@ -46,6 +51,9 @@ jobs:
4651
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
4752
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4853
54+
- name: Remove larastan from dev dependencies
55+
run: composer remove --dev nunomaduro/larastan
56+
4957
- name: Install dependencies
5058
run: |
5159
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@
1717
"require": {
1818
"php": "^8.2",
1919
"spatie/laravel-package-tools": "^1.16",
20-
"illuminate/contracts": "^10.0||^11.0"
20+
"illuminate/contracts": "^9.0|^10.0|^11.0|^12.0"
2121
},
2222
"require-dev": {
23-
"larastan/larastan": "^2.9",
24-
"laravel/pint": "^1.14",
23+
"larastan/larastan": "^2.9|^3.0",
24+
"laravel/pint": "^1.21",
2525
"mockery/mockery": "^1.6",
26-
"nunomaduro/collision": "^8.1.1||^7.10.0",
27-
"orchestra/testbench": "^9.0.0||^8.22.0",
28-
"pestphp/pest": "^2.34",
29-
"pestphp/pest-plugin-arch": "^2.7",
30-
"pestphp/pest-plugin-laravel": "^2.3",
26+
"nunomaduro/collision": "^8.1.1|^7.10.0",
27+
"orchestra/testbench": "^8.0|^9.0|^10.0",
28+
"pestphp/pest": "^2.0|^3.0",
29+
"pestphp/pest-plugin-arch": "^2.0|^3.0",
30+
"pestphp/pest-plugin-laravel": "^2.0|^3.0",
3131
"phpstan/extension-installer": "^1.3",
32-
"phpstan/phpstan-deprecation-rules": "^1.1",
33-
"phpstan/phpstan-phpunit": "^1.3",
34-
"spatie/laravel-ray": "^1.35"
32+
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
33+
"phpstan/phpstan-phpunit": "^1.0|^2.0",
34+
"spatie/laravel-ray": "^1.39"
3535
},
3636
"autoload": {
3737
"psr-4": {

0 commit comments

Comments
 (0)