Skip to content

Commit 7b37b6e

Browse files
committed
- Adding Laravel 13 support
1 parent 9b294fc commit 7b37b6e

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/run-tests.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,21 @@ jobs:
1717
matrix:
1818
os: [ ubuntu-latest ]
1919
php: [ 8.4, 8.3, 8.2 ]
20-
laravel: [ 12.*, 11.*, 10.* ]
20+
laravel: [ 13.*, 12.*, 11.*, 10.* ]
2121
stability: [ prefer-lowest, prefer-stable ]
2222
include:
2323
- laravel: 12.*
2424
testbench: 10.*
2525
carbon: ^3.8.4
2626
- laravel: 11.*
27-
testbench: 9.*
27+
testbench: ^9.16
2828
carbon: ^2.63
2929
- laravel: 10.*
3030
testbench: 8.*
3131
carbon: ^2.63
32+
exclude:
33+
- laravel: 13.*
34+
php: 8.2
3235

3336
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3437

@@ -46,7 +49,7 @@ jobs:
4649
with:
4750
php-version: ${{ matrix.php }}
4851
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
49-
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '12.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
52+
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
5053

5154
- name: Install dependencies
5255
run: |
@@ -55,10 +58,10 @@ jobs:
5558
5659
- name: Execute tests
5760
run: |
58-
vendor/bin/phpunit ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '12.*' && matrix.stability == 'prefer-stable' && '--coverage-clover=clover.xml' || '' }}
61+
vendor/bin/phpunit ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable' && '--coverage-clover=clover.xml' || '' }}
5962
6063
- name: Make code coverage badge
61-
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '12.*' && matrix.stability == 'prefer-stable'
64+
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable'
6265
uses: timkrase/phpunit-coverage-badge@v1.2.1
6366
with:
6467
coverage_badge_path: .github/coverage.svg

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
],
1212
"require": {
1313
"php": "^8.2",
14-
"illuminate/support": "^10.0 || ^11.0 || ^12.0",
14+
"illuminate/support": "^10.0 || ^11.0 || ^12.0 || ^13.0",
1515
"spatie/laravel-query-builder": "^6.3"
1616
},
1717
"require-dev": {
18-
"orchestra/testbench": "^8.0 || ^9.0 || ^10.0",
19-
"phpunit/phpunit": "^10.5 || ^11.5.3",
18+
"orchestra/testbench": "^8.0 || ^9.16 || ^10.0 || ^11.0",
19+
"phpunit/phpunit": "^10.5 || ^11.5.3 || ^12.5.8 || ^13.0.3",
2020
"knuckleswtf/scribe": "^5.3"
2121
},
2222
"suggest": {

0 commit comments

Comments
 (0)