Skip to content

Commit a0a1c37

Browse files
committed
- Adding Laravel 13 support
1 parent f87ed06 commit a0a1c37

2 files changed

Lines changed: 21 additions & 8 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ 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:
23+
- laravel: 13.*
24+
testbench: 11.*
25+
carbon: ^3.8.4
2326
- laravel: 12.*
2427
testbench: 10.*
2528
carbon: ^3.8.4
@@ -29,6 +32,9 @@ jobs:
2932
- laravel: 10.*
3033
testbench: 8.*
3134
carbon: ^2.63
35+
exclude:
36+
- laravel: 13.*
37+
php: 8.2
3238

3339
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3440

@@ -46,7 +52,7 @@ jobs:
4652
with:
4753
php-version: ${{ matrix.php }}
4854
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' }}
55+
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
5056

5157
- name: Install dependencies
5258
run: |
@@ -55,10 +61,10 @@ jobs:
5561
5662
- name: Execute tests
5763
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' || '' }}
64+
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' || '' }}
5965
6066
- 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'
67+
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable'
6268
uses: timkrase/phpunit-coverage-badge@v1.2.1
6369
with:
6470
coverage_badge_path: .github/coverage.svg

composer.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
],
1818
"require": {
1919
"php": "^8.2",
20-
"illuminate/support": "^10.0 || ^11.0 || ^12.0",
20+
"illuminate/support": "^10.0 || ^11.0 || ^12.0 || ^13.0",
2121
"maatwebsite/excel": "^3.1",
22-
"javaabu/forms": "^1.61"
22+
"javaabu/forms": "^1.67"
2323
},
2424
"require-dev": {
2525
"laravel/pint": "^1.14",
26-
"orchestra/testbench": "^8.0 || ^9.0 || ^10.0",
27-
"phpunit/phpunit": "^10.5 || ^11.5.3"
26+
"orchestra/testbench": "^8.0 || ^9.16 || ^10.0 || ^11.0",
27+
"phpunit/phpunit": "^10.5 || ^11.5.3 || ^12.5.8 || ^13.0.3"
2828
},
2929
"autoload": {
3030
"psr-4": {
@@ -46,6 +46,13 @@
4646
]
4747
}
4848
},
49+
"repositories": [
50+
{
51+
"type": "vcs",
52+
"url": "https://github.com/Javaabu/Laravel-Excel.git",
53+
"canonical": false
54+
}
55+
],
4956
"minimum-stability": "dev",
5057
"prefer-stable": true
5158
}

0 commit comments

Comments
 (0)