Skip to content

Commit 571dd59

Browse files
committed
ci: add support for laravel 13
Ref #58942
1 parent 89cf5e6 commit 571dd59

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: tests
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
tests:
@@ -11,6 +11,7 @@ jobs:
1111
matrix:
1212
php: [8.3, 8.4, 8.5]
1313
laravel: [11.*, 12.*, 13.*]
14+
phpunit: [11.*, 12.*]
1415
dependency-version: [prefer-lowest, prefer-stable]
1516
include:
1617
- laravel: 11.*
@@ -19,8 +20,15 @@ jobs:
1920
testbench: 10.*
2021
- laravel: 13.*
2122
testbench: 11.*
23+
exclude:
24+
- laravel: 11.*
25+
phpunit: 12.*
26+
- laravel: 12.*
27+
phpunit: 12.*
28+
- laravel: 13.*
29+
phpunit: 11.*
2230

23-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
31+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - U${{ matrix.phpunit }} - ${{ matrix.dependency-version }}
2432

2533
steps:
2634
- name: Checkout code
@@ -35,7 +43,7 @@ jobs:
3543

3644
- name: Install dependencies
3745
run: |
38-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
46+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
3947
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
4048
4149
- name: Execute tests

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"laravel/pint": "^1.2",
3232
"mockery/mockery": "^1.4",
3333
"orchestra/testbench": "^9.0|^10.0|^11.0",
34-
"phpunit/phpunit": "^11.5.3",
34+
"phpunit/phpunit": "^11.5.3|^12.0",
3535
"squizlabs/php_codesniffer": "^3.6"
3636
},
3737
"autoload": {

0 commit comments

Comments
 (0)