Skip to content

Commit 269ad9f

Browse files
Add Support for Laravel 12 (#230)
1 parent d69b75f commit 269ad9f

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/tests.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
php: [8.2, 8.3, 8.4]
13-
laravel: [11.*]
14-
phpunit: [10.*]
13+
laravel: [11.*, 12.*]
1514
stability: [prefer-lowest, prefer-stable]
1615
include:
1716
- laravel: 11.*
1817
testbench: 9.*
19-
exclude:
20-
- php: 8.2
21-
phpunit: 11.*
18+
- laravel: 12.*
19+
testbench: 10.*
2220

23-
name: P${{ matrix.php }} - L${{ matrix.laravel }} PU${{ matrix.phpunit }} - ${{ matrix.stability }}
21+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
2422

2523
steps:
2624
- name: Checkout code
@@ -36,7 +34,7 @@ jobs:
3634

3735
- name: Install dependencies
3836
run: |
39-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
37+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4038
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest
4139
4240
- name: Execute tests

composer.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,19 @@
1515
"require": {
1616
"php": "^8.2",
1717
"ext-json": "*",
18-
"illuminate/console": "^11.0",
19-
"illuminate/support": "^11.0",
18+
"illuminate/console": "^11.0 | ^12.0",
19+
"illuminate/support": "^11.0 | ^12.0",
2020
"stefanzweifel/laravel-stats-phploc": "^7.0 | ^8.0",
2121
"symfony/finder": "^7.0",
2222
"symfony/process": " ^7.0"
2323
},
2424
"require-dev": {
2525
"friendsofphp/php-cs-fixer": "^3.2",
26-
"larastan/larastan": "^2.0",
2726
"laravel/browser-kit-testing": "^7.1 | ^8.0",
2827
"laravel/dusk": "^8.0",
2928
"livewire/livewire": "^3.0",
30-
"orchestra/testbench": "^9.0",
31-
"pestphp/pest": "^2",
29+
"orchestra/testbench": "^9.0 | ^10",
30+
"pestphp/pest": "^2 | ^3",
3231
"phpunit/phpunit": "^10.0 | ^11.0",
3332
"rector/rector": "^1.0"
3433
},

0 commit comments

Comments
 (0)