Skip to content

Commit c53b24e

Browse files
authored
support Laravel 12 (#80)
* support laravel 12 * Update run-tests.yml * add php 8.4 test
1 parent 3bd753f commit c53b24e

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

.github/workflows/run-tests.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
67
pull_request:
7-
branches: [main]
8+
branches:
9+
- main
810

911
jobs:
1012
test:
@@ -13,14 +15,16 @@ jobs:
1315
fail-fast: true
1416
matrix:
1517
os: [ubuntu-latest, windows-latest]
16-
php: [8.3, 8.2, 8.1, 8.0]
17-
laravel: [11.*, 10.*, 9.*]
18+
php: [8.4, 8.3, 8.2, 8.1, 8.0]
19+
laravel: ['9.*', '10.*', '11.*', '12.*']
1820
stability: [prefer-lowest, prefer-stable]
1921
include:
22+
- laravel: 12.*
23+
testbench: 10.*
24+
carbon: ^3.8.4
2025
- laravel: 11.*
2126
testbench: 9.*
22-
carbon:
23-
^3.0
27+
carbon: ^3.8.4
2428
- laravel: 10.*
2529
testbench: 8.*
2630
carbon: ^2.63
@@ -34,6 +38,10 @@ jobs:
3438
php: 8.1
3539
- laravel: 11.*
3640
php: 8.0
41+
- laravel: 12.*
42+
php: 8.1
43+
- laravel: 12.*
44+
php: 8.0
3745

3846
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3947

@@ -52,9 +60,11 @@ jobs:
5260
run: |
5361
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
5462
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
63+
5564
- name: Install dependencies
5665
run: |
5766
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
5867
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
68+
5969
- name: Execute tests
6070
run: vendor/bin/phpunit

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
],
2626
"require": {
2727
"php": "^8.0",
28-
"illuminate/database": "^9.0|^10.0|^11.0",
29-
"illuminate/support": "^9.0|^10.0|^11.0",
28+
"illuminate/database": "^9.0|^10.0|^11.0|^12.0",
29+
"illuminate/support": "^9.0|^10.0|^11.0|^12.0",
3030
"spatie/laravel-package-tools": "^1.14.1"
3131
},
3232
"require-dev": {
3333
"laravel/pint": "^1.0",
34-
"orchestra/testbench": "^7.0|^8.0|^9.0",
35-
"phpunit/phpunit": "^9.5|^10.5",
34+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
35+
"phpunit/phpunit": "^9.5|^10.5|^11.5.3",
3636
"spatie/laravel-ray": "^1.29",
37-
"vimeo/psalm": "^4.22|^5.22"
37+
"vimeo/psalm": "^4.22|^5.22|^6.6"
3838
},
3939
"autoload": {
4040
"psr-4": {

0 commit comments

Comments
 (0)