Skip to content

Commit efc0d2b

Browse files
chore: support laravel 12
1 parent 26020c2 commit efc0d2b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/main.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest]
1616
php: [8.4, 8.3, 8.2, 8.1]
17-
laravel: [11.*, 10.*, 9.*]
17+
laravel: [12.*, 11.*, 10.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20+
- laravel: 12.*
21+
testbench: 10.*
2022
- laravel: 11.*
2123
testbench: 9.*
2224
- laravel: 10.*
2325
testbench: 8.*
2426
- laravel: 9.*
2527
testbench: 7.*
2628
exclude:
29+
- laravel: 12.*
30+
php: 8.1
2731
- laravel: 11.*
2832
php: 8.1
2933

@@ -56,7 +60,7 @@ jobs:
5660
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
5761
- name: Install dependencies
5862
run: |
59-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.64" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
63+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
6064
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
6165
- name: Execute tests
6266
run: vendor/bin/phpunit

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
],
2020
"require": {
2121
"php": "^8.1",
22-
"illuminate/support": "^9.0|^10.0|^11.0",
23-
"illuminate/database": "^9.0|^10.0|^11.0"
22+
"illuminate/support": "^10.0|^11.0|^12.0",
23+
"illuminate/database": "^10.0|^11.0|^12.0"
2424
},
2525
"require-dev": {
2626
"friendsofphp/php-cs-fixer": "^3.5",
27-
"orchestra/testbench": "^7.0|^8.0|^9.0",
28-
"phpunit/phpunit": "^9.0|^10.0"
27+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
28+
"phpunit/phpunit": "^10.1|11.0"
2929
},
3030
"autoload": {
3131
"psr-4": {

0 commit comments

Comments
 (0)