Skip to content

Commit 40d1b5c

Browse files
authored
Merge pull request #19 from eXolnet/feature/58942-laravel-13-support
ci: add support for laravel 13
2 parents 61656ad + f8c7ef4 commit 40d1b5c

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 15 additions & 5 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:
@@ -10,10 +10,20 @@ jobs:
1010
fail-fast: true
1111
matrix:
1212
php: [8.2, 8.3, 8.4, 8.5]
13-
laravel: [11.*, 12.*]
13+
laravel: [11.*, 12.*, 13.*]
14+
phpunit: [11.*, 12.*]
1415
dependency-version: [prefer-lowest, prefer-stable]
15-
16-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
16+
exclude:
17+
- laravel: 11.*
18+
phpunit: 12.*
19+
- laravel: 12.*
20+
phpunit: 12.*
21+
- laravel: 13.*
22+
phpunit: 11.*
23+
- laravel: 13.*
24+
php: 8.2
25+
26+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - U${{ matrix.phpunit }} - ${{ matrix.dependency-version }}
1727

1828
steps:
1929
- name: Checkout code
@@ -28,7 +38,7 @@ jobs:
2838

2939
- name: Install dependencies
3040
run: |
31-
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
41+
composer require "laravel/framework:${{ matrix.laravel }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
3242
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
3343
3444
- name: Execute tests

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
],
1111
"require": {
1212
"php": "^8.2",
13-
"laravel/framework": "^11.0|^12.0"
13+
"laravel/framework": "^11.0|^12.0|^13.0"
1414
},
1515
"require-dev": {
1616
"mockery/mockery": "^1.5.1",
17-
"phpunit/phpunit": "^11.5.3",
17+
"phpunit/phpunit": "^11.5.3|^12.0",
1818
"squizlabs/php_codesniffer": "^3.6"
1919
},
2020
"autoload": {

0 commit comments

Comments
 (0)