Skip to content

Commit 5fa27ba

Browse files
Update to support Laravel 12 (#41)
* Update to support laravel 12 * Fix workflows * Fix workflows * Update larastan version * Update infection version
1 parent 6d460d7 commit 5fa27ba

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

.github/workflows/infection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
coverage: xdebug
2222

2323
- name: Cache composer dependencies
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: vendor
2727
key: composer-${{ hashFiles('composer.lock') }}

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: "Running Larastan check"
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
@@ -21,7 +21,7 @@ jobs:
2121
coverage: none
2222

2323
- name: Cache composer dependencies
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: vendor
2727
key: composer-${{ hashFiles('composer.lock') }}

.github/workflows/pint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: "Running Laravel Pint"
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
@@ -21,7 +21,7 @@ jobs:
2121
coverage: none
2222

2323
- name: Cache composer dependencies
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: vendor
2727
key: composer-${{ hashFiles('composer.lock') }}

.github/workflows/run-tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,23 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest]
1616
php: [8.1, 8.2, 8.3, 8.4]
17-
laravel: ['10.*', '11.*']
17+
laravel: ['10.*', '11.*', '12.*']
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
2020
- laravel: 10.*
2121
testbench: 8.*
22+
carbon: ^2.72.2
2223
- laravel: 11.*
2324
testbench: 9.*
25+
carbon: ^2.72.2
26+
- laravel: 12.*
27+
testbench: 10.*
28+
carbon: ^3.8.4
2429
exclude:
2530
- laravel: 11.*
2631
php: 8.1
32+
- laravel: 12.*
33+
php: 8.1
2734

2835
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2936

@@ -45,7 +52,7 @@ jobs:
4552
4653
- name: Install dependencies
4754
run: |
48-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.64.1" --no-interaction --no-update
55+
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon: ${{matrix.carbon }}" --no-interaction --no-update
4956
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
5057
5158
- name: Execute tests

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"illuminate/contracts": "^10.0|^11.0",
20+
"illuminate/contracts": "^10.0|^11.0|^12.0",
2121
"spatie/laravel-package-tools": "^1.13"
2222
},
2323
"require-dev": {
2424
"brianium/paratest": "^6.3|^7.4",
25-
"infection/infection": "^0.27.3",
26-
"larastan/larastan": "^2.0",
25+
"infection/infection": "^0.27.3|^0.29.14",
26+
"larastan/larastan": "^2.0|^3.0",
2727
"laravel/pint": "^1.0",
2828
"nunomaduro/collision": "^7.0|^8.0",
29-
"orchestra/testbench": "^8.0|^9.0",
30-
"phpunit/phpunit": "^9.5|^10.5"
29+
"orchestra/testbench": "^8.0|^9.0|^10.0",
30+
"phpunit/phpunit": "^9.5|^10.5|^11.0"
3131
},
3232
"autoload": {
3333
"psr-4": {

0 commit comments

Comments
 (0)