Skip to content

Commit f6ad2a0

Browse files
committed
- Adding Laravel 13 support
1 parent 787ee61 commit f6ad2a0

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

.github/workflows/run-tests.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,19 @@ jobs:
1717
matrix:
1818
os: [ ubuntu-latest ]
1919
php: [ 8.4, 8.3, 8.2, 8.1, 8.0, 7.4, 7.2 ]
20-
laravel: [ 12.*, 11.*, 10.*, 9.*, 8.*, 7.*, 6.*, ^5.6 ]
20+
laravel: [ 13.*, 12.*, 11.*, 10.*, 9.*, 8.*, 7.*, 6.*, ^5.6 ]
2121
stability: [ prefer-lowest, prefer-stable ]
2222
include:
23+
- laravel: 13.*
24+
testbench: 11.*
25+
carbon: ^3.8.4
26+
phpunit: ^12.5.8
2327
- laravel: 12.*
2428
testbench: 10.*
2529
carbon: ^3.8.4
2630
phpunit: ^11.5.3
2731
- laravel: 11.*
28-
testbench: 9.*
32+
testbench: ^9.16
2933
carbon: ^2.63
3034
phpunit: ^10.5
3135
- laravel: 10.*
@@ -53,6 +57,16 @@ jobs:
5357
carbon: ^2.63
5458
phpunit: ^8.5
5559
exclude:
60+
- laravel: 13.*
61+
php: 8.2
62+
- laravel: 13.*
63+
php: 8.1
64+
- laravel: 13.*
65+
php: 8.0
66+
- laravel: 13.*
67+
php: 7.4
68+
- laravel: 13.*
69+
php: 7.2
5670
- laravel: 12.*
5771
php: 8.1
5872
- laravel: 12.*
@@ -124,7 +138,7 @@ jobs:
124138
with:
125139
php-version: ${{ matrix.php }}
126140
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
127-
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '12.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
141+
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
128142

129143
- name: Install dependencies
130144
run: |
@@ -133,10 +147,10 @@ jobs:
133147
134148
- name: Execute tests
135149
run: |
136-
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' || '' }}
150+
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' || '' }}
137151
138152
- name: Make code coverage badge
139-
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '12.*' && matrix.stability == 'prefer-stable'
153+
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable'
140154
uses: timkrase/phpunit-coverage-badge@v1.2.1
141155
with:
142156
coverage_badge_path: .github/coverage.svg

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"require": {
1313
"php": "^7.2 || ^8.0",
1414
"guzzlehttp/guzzle": "~7.0",
15-
"illuminate/support": "^5.6|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0"
15+
"illuminate/support": "^5.6|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0"
1616
},
1717
"require-dev": {
18-
"orchestra/testbench": "^3.6 || ^4.0 || ^5.0 || ^6.44 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
19-
"phpunit/phpunit": "~7.0 || ^8.5 || ^9.5 || ^10.5 || ^11.5.3"
18+
"orchestra/testbench": "^3.6 || ^4.0 || ^5.0 || ^6.44 || ^7.0 || ^8.0 || ^9.16 || ^10.0 || ^11.0",
19+
"phpunit/phpunit": "~7.0 || ^8.5 || ^9.5 || ^10.5 || ^11.5.3 || ^12.5.8 || ^13.0.3"
2020
},
2121
"autoload": {
2222
"psr-4": {
@@ -41,5 +41,6 @@
4141
}
4242
}
4343
},
44-
"minimum-stability": "stable"
44+
"minimum-stability": "dev",
45+
"prefer-stable": true
4546
}

0 commit comments

Comments
 (0)