Skip to content

Commit 7e57f30

Browse files
Laravel 12.x Compatibility (#147)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12 * Update run-tests.yml --------- Co-authored-by: Freek Van der Herten <freek@spatie.be>
1 parent e571de6 commit 7e57f30

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/run-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest]
1515
php: [8.2, 8.1, 8.0]
16-
laravel: ['8.*', '9.*', '10.*', '11.*']
16+
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
1717
dependency-version: [prefer-lowest, prefer-stable]
1818
include:
1919
- laravel: 10.*
@@ -24,13 +24,19 @@ jobs:
2424
testbench: ^6.23
2525
- laravel: 11.*
2626
testbench: 9.*
27+
- laravel: 12.*
28+
testbench: 10.*
2729
exclude:
2830
- laravel: 10.*
2931
php: 8.0
3032
- laravel: 11.*
3133
php: 8.1
3234
- laravel: 11.*
3335
php: 8.0
36+
- laravel: 12.*
37+
php: 8.1
38+
- laravel: 12.*
39+
php: 8.0
3440

3541
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
3642

@@ -47,7 +53,7 @@ jobs:
4753

4854
- name: Install dependencies
4955
run: |
50-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
56+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
5157
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
5258
5359
- name: Execute tests

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
],
1818
"require": {
1919
"php": "^8.0",
20-
"illuminate/auth": "^8.0|^9.0|^10.0|^11.0",
21-
"illuminate/contracts": "^8.71|^9.0|^10.0|^11.0",
22-
"illuminate/support": "^8.71|^9.0|^10.0|^11.0",
20+
"illuminate/auth": "^8.0|^9.0|^10.0|^11.0|^12.0",
21+
"illuminate/contracts": "^8.71|^9.0|^10.0|^11.0|^12.0",
22+
"illuminate/support": "^8.71|^9.0|^10.0|^11.0|^12.0",
2323
"spatie/menu": "^3.0"
2424
},
2525
"require-dev": {
2626
"fakerphp/faker": "^1.9",
27-
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
28-
"phpunit/phpunit": "^9.4|^10.5",
29-
"pestphp/pest": "^1.22|^2.34"
27+
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0|^10.0",
28+
"phpunit/phpunit": "^9.4|^10.5|^11.5.3",
29+
"pestphp/pest": "^1.22|^2.34|^3.7"
3030
},
3131
"autoload": {
3232
"psr-4": {

0 commit comments

Comments
 (0)