Skip to content

Commit a1c1665

Browse files
committed
- Adding Laravel 13 support
Signed-off-by: Arushad Ahmed <dash-8x@hotmail.com>
1 parent 84f1322 commit a1c1665

File tree

2 files changed

+34
-13
lines changed

2 files changed

+34
-13
lines changed

.github/workflows/run-tests.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,39 @@ jobs:
1717
matrix:
1818
os: [ ubuntu-latest ]
1919
php: [ 8.4, 8.3, 8.2, 8.1 ]
20-
laravel: [ 12.*, 11.*, 10.*, 9.* ]
20+
laravel: [ 13.*, 12.*, 11.*, 10.*, 9.* ]
2121
stability: [ prefer-lowest, prefer-stable ]
2222
include:
23+
- laravel: 13.*
24+
testbench: 10.*
25+
carbon: ^3.8.4
26+
medialibrary: 11.*
27+
geospatial: ^4.6
2328
- laravel: 12.*
2429
testbench: 10.*
2530
carbon: ^3.8.4
2631
medialibrary: 11.*
27-
geospatial: ^4.5
32+
geospatial: ^4.6
2833
- laravel: 11.*
2934
testbench: 9.*
3035
carbon: ^2.63
3136
medialibrary: 11.*
32-
geospatial: ^4.5
37+
geospatial: ^4.6
3338
- laravel: 10.*
3439
testbench: 8.*
3540
carbon: ^2.63
3641
medialibrary: ^10.3.4
37-
geospatial: ^4.5
42+
geospatial: ^4.6
3843
- laravel: 9.*
3944
testbench: 7.*
4045
carbon: ^2.63
4146
medialibrary: ^10.3.4
4247
geospatial: ^2.10
4348
exclude:
49+
- laravel: 13.*
50+
php: 8.2
51+
- laravel: 13.*
52+
php: 8.1
4453
- laravel: 12.*
4554
php: 8.1
4655
- laravel: 11.*
@@ -74,7 +83,7 @@ jobs:
7483
with:
7584
php-version: ${{ matrix.php }}
7685
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
77-
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.3' && matrix.laravel == '11.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
86+
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
7887

7988
- name: Install dependencies
8089
run: |
@@ -84,14 +93,14 @@ jobs:
8493
8594
- name: Execute tests
8695
run: |
87-
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' || '' }}
96+
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' || '' }}
8897
env:
8998
DB_USERNAME: user
9099
DB_PASSWORD: secret
91100
DB_PORT: ${{ (matrix.laravel == '9.*') && job.services.mysql.ports[3306] || '' }}
92101

93102
- name: Make code coverage badge
94-
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.3' && matrix.laravel == '11.*' && matrix.stability == 'prefer-stable'
103+
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable'
95104
uses: timkrase/phpunit-coverage-badge@v1.2.1
96105
with:
97106
coverage_badge_path: .github/coverage.svg

composer.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
],
1212
"require": {
1313
"php": "^8.1",
14-
"illuminate/support": "^9.52 || ^10.0 || ^11.0.1 || ^12.0",
15-
"javaabu/settings": "^1.6",
16-
"javaabu/helpers": "^1.60"
14+
"illuminate/support": "^9.52 || ^10.0 || ^11.0.1 || ^12.0 || ^13.0",
15+
"javaabu/settings": "^1.7",
16+
"javaabu/helpers": "^1.70"
1717
},
1818
"require-dev": {
1919
"orchestra/testbench-browser-kit": "^7.0 || ^8.0 || ^9.0 || ^10.0",
20-
"phpunit/phpunit": "^9.5 || ^10.5 || ^11.5.3",
20+
"phpunit/phpunit": "^9.5 || ^10.5 || ^11.5.3 || ^12.5.8 || ^13.0.3",
2121
"spatie/laravel-medialibrary": "^10.3.4 || ^11.4",
22-
"matanyadaev/laravel-eloquent-spatial": "^2.10 || ^4.5",
22+
"matanyadaev/laravel-eloquent-spatial": "^2.10 || ^4.6",
2323
"composer/semver": "^3.4"
2424
},
2525
"suggest": {
@@ -46,6 +46,18 @@
4646
]
4747
}
4848
},
49+
"repositories": [
50+
{
51+
"type": "vcs",
52+
"url": "https://github.com/Javaabu/testbench-browser-kit.git",
53+
"canonical": false
54+
},
55+
{
56+
"type": "vcs",
57+
"url": "https://github.com/Javaabu/laravel-eloquent-spatial.git",
58+
"canonical": false
59+
}
60+
],
4961
"minimum-stability": "dev",
5062
"prefer-stable": true
51-
}
63+
}

0 commit comments

Comments
 (0)