Skip to content

Commit b985fe6

Browse files
authored
Add Laravel 12 Support
1 parent 62160a7 commit b985fe6

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.github/workflows/run-tests.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,29 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [8.3, 8.2, 8.1]
17-
laravel: ["^11.0", "^10.0", "^9.0"]
16+
php: [8.4, 8.3, 8.2, 8.1]
17+
laravel: ["^12.0", "^11.0", "^10.0", "^9.38"]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20+
- laravel: "^12.0"
21+
testbench: 10.*
2022
- laravel: "^11.0"
2123
testbench: 9.*
2224
- laravel: "^10.0"
2325
testbench: 8.*
24-
- laravel: "^9.0"
26+
- laravel: "^9.38"
2527
testbench: 7.*
2628
exclude:
2729
- laravel: "^11.0"
2830
php: 8.1
31+
- laravel: "^12.0"
32+
php: 8.1
2933

3034
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3135

3236
steps:
3337
- name: Checkout code
34-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3539

3640
- name: Setup PHP
3741
uses: shivammathur/setup-php@v2
@@ -45,6 +49,9 @@ jobs:
4549
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
4650
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4751
52+
- name: Remove larastan from dev dependencies
53+
run: composer remove --dev nunomaduro/larastan
54+
4855
- name: Install dependencies
4956
run: |
5057
composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update

composer.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818
"require": {
1919
"php": "^8.1",
2020
"spatie/laravel-package-tools": "^1.13.0",
21-
"illuminate/contracts": "^9.0|^10.0|^11.0"
21+
"illuminate/contracts": "^9.0|^10.0|^11.0|^12.0"
2222
},
2323
"require-dev": {
2424
"laravel/pint": "^1.0",
25-
"nunomaduro/collision": "^6.0|^7.0|^8.0",
2625
"nunomaduro/larastan": "^2.0.1",
27-
"orchestra/testbench": "^7.0|^8.0|^9.0",
28-
"pestphp/pest": "^1.0|^2.0",
29-
"pestphp/pest-plugin-laravel": "^1.0|^2.0"
26+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
27+
"pestphp/pest": "^1.0|^2.0|^3.0",
28+
"pestphp/pest-plugin-laravel": "^1.0|^2.0|^3.0"
3029
},
3130
"autoload": {
3231
"psr-4": {

0 commit comments

Comments
 (0)