Skip to content

Commit c7b38e1

Browse files
committed
ci: add support for laravel 13
Ref #58942
1 parent b5e0523 commit c7b38e1

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 9 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,14 +11,20 @@ jobs:
1111
matrix:
1212
php: [8.4, 8.5]
1313
laravel: [12.*, 13.*]
14+
phpunit: [11.*, 12.*]
1415
dependency-version: [prefer-lowest, prefer-stable]
1516
include:
1617
- laravel: 12.*
1718
testbench: 10.*
1819
- laravel: 13.*
1920
testbench: 11.*
21+
exclude:
22+
- laravel: 12.*
23+
phpunit: 12.*
24+
- laravel: 13.*
25+
phpunit: 11.*
2026

21-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
27+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - U${{ matrix.phpunit }} - ${{ matrix.dependency-version }}
2228

2329
services:
2430
mysql:
@@ -46,7 +52,7 @@ jobs:
4652

4753
- name: Install dependencies
4854
run: |
49-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
55+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
5056
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
5157
5258
- name: Execute tests

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"require-dev": {
3333
"mockery/mockery": "^1.4",
3434
"orchestra/testbench": "^10.0|^11.0",
35-
"phpunit/phpunit": "^11.5.3",
35+
"phpunit/phpunit": "^11.5.3|^12.0",
3636
"squizlabs/php_codesniffer": "^3.6"
3737
},
3838
"autoload": {

0 commit comments

Comments
 (0)