Skip to content

Commit ddb817f

Browse files
Laravel 12.x Compatibility (#209)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12 * Update run-tests.yml * Update composer.json --------- Co-authored-by: Freek Van der Herten <[email protected]>
1 parent f235f1b commit ddb817f

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/run-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,26 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest]
1515
php: [8.3, 8.2, 8.1, 8.0]
16-
laravel: ['10.*', '11.*']
16+
laravel: ['10.*', '11.*', '12.*']
1717
dependency-version: [prefer-stable]
1818
include:
1919
- laravel: 10.*
2020
testbench: 8.*
2121
- laravel: 11.*
2222
testbench: 9.*
23+
- laravel: 12.*
24+
testbench: 10.*
2325
exclude:
2426
- laravel: 10.*
2527
php: 8.0
2628
- laravel: 11.*
2729
php: 8.1
2830
- laravel: 11.*
2931
php: 8.0
32+
- laravel: 12.*
33+
php: 8.1
34+
- laravel: 12.*
35+
php: 8.0
3036

3137
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
3238

@@ -43,7 +49,7 @@ jobs:
4349

4450
- name: Install dependencies
4551
run: |
46-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
52+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4753
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
4854
4955
- name: Execute tests

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
],
3737
"require": {
3838
"php": "^8.0",
39-
"illuminate/support": "^10.0|^11.0",
40-
"illuminate/http": "^10.0|^11.0",
41-
"illuminate/contracts": "^10.0|^11.0",
39+
"illuminate/support": "^10.0|^11.0|^12.0",
40+
"illuminate/http": "^10.0|^11.0|^12.0",
41+
"illuminate/contracts": "^10.0|^11.0|^12.0",
4242
"spatie/laravel-package-tools": "^1.15"
4343
},
4444
"require-dev": {
45-
"orchestra/testbench": "^8.0|^9.0",
45+
"orchestra/testbench": "^8.0|^9.0|^10.0",
4646
"spatie/test-time": "^1.2",
47-
"pestphp/pest": "^2.0",
47+
"pestphp/pest": "^2.0|^3.0",
4848
"spatie/pest-plugin-snapshots": "^2.0"
4949
},
5050
"autoload": {

0 commit comments

Comments
 (0)