Skip to content

Commit 86a9990

Browse files
committed
- Testing Laravel 13 support
1 parent 2bf7f0a commit 86a9990

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
laravel: [ 12.*, 11.*, 10.*, 9.* ]
2121
stability: [ prefer-lowest, prefer-stable ]
2222
include:
23+
- laravel: 13.*
24+
testbench: 11.*
25+
carbon: ^3.8.4
2326
- laravel: 12.*
2427
testbench: 10.*
2528
carbon: ^3.8.4
@@ -33,6 +36,10 @@ jobs:
3336
testbench: 7.*
3437
carbon: ^2.63
3538
exclude:
39+
- laravel: 13.*
40+
php: 8.2
41+
- laravel: 13.*
42+
php: 8.1
3643
- laravel: 12.*
3744
php: 8.1
3845
- laravel: 11.*
@@ -54,7 +61,7 @@ jobs:
5461
with:
5562
php-version: ${{ matrix.php }}
5663
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
57-
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.3' && matrix.laravel == '11.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
64+
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
5865

5966
- name: Install dependencies
6067
run: |
@@ -63,10 +70,10 @@ jobs:
6370
6471
- name: Execute tests
6572
run: |
66-
vendor/bin/phpunit ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.3' && matrix.laravel == '11.*' && matrix.stability == 'prefer-stable' && '--coverage-clover=clover.xml' || '' }}
73+
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' || '' }}
6774
6875
- name: Make code coverage badge
69-
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.3' && matrix.laravel == '11.*' && matrix.stability == 'prefer-stable'
76+
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable'
7077
uses: timkrase/phpunit-coverage-badge@v1.2.1
7178
with:
7279
coverage_badge_path: .github/coverage.svg

composer.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"illuminate/support": "^9.0 || ^10.0 || ^11.0 || ^12.0",
20+
"illuminate/support": "^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0",
2121
"anlutro/l4-settings": "^1.4",
2222
"spatie/laravel-activitylog": "^4.8"
2323
},
2424
"require-dev": {
25-
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0 || ^10.0",
26-
"phpunit/phpunit": "^9.5 || ^10.5 || ^11.5.3"
25+
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0",
26+
"phpunit/phpunit": "^9.5 || ^10.5 || ^11.5.3 || ^12.5.8 || ^13.0.3"
2727
},
2828
"autoload": {
2929
"psr-4": {
@@ -45,6 +45,12 @@
4545
]
4646
}
4747
},
48+
"repositories": [
49+
{
50+
"type": "vcs",
51+
"url": "https://github.com/javaabu/laravel-settings.git"
52+
}
53+
],
4854
"minimum-stability": "dev",
4955
"prefer-stable": true
5056
}

0 commit comments

Comments
 (0)