Skip to content

Commit 51602fc

Browse files
committed
- Adding Laravel 13 support
1 parent 6ad1292 commit 51602fc

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 11 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, 8.1 ]
20-
laravel: [ 12.*, 11.*, ^10.48 ]
20+
laravel: [ 13.*, 12.*, 11.*, ^10.48 ]
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
@@ -30,6 +33,10 @@ jobs:
3033
testbench: 8.*
3134
carbon: ^2.63
3235
exclude:
36+
- laravel: 13.*
37+
php: 8.2
38+
- laravel: 13.*
39+
php: 8.1
3340
- laravel: 12.*
3441
php: 8.1
3542
- laravel: 11.*
@@ -63,7 +70,7 @@ jobs:
6370
with:
6471
php-version: ${{ matrix.php }}
6572
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
66-
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.3' && matrix.laravel == '11.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
73+
coverage: ${{ startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable' && 'xdebug' || 'none' }}
6774

6875
- name: Install dependencies
6976
run: |
@@ -72,14 +79,14 @@ jobs:
7279
7380
- name: Execute tests
7481
run: |
75-
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' || '' }}
82+
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' || '' }}
7683
env:
7784
DB_USERNAME: user
7885
DB_PASSWORD: secret
7986
DB_PORT: ${{ job.services.mysql.ports[3306] }}
8087

8188
- name: Make code coverage badge
82-
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.3' && matrix.laravel == '11.*' && matrix.stability == 'prefer-stable'
89+
if: startsWith(github.event.head_commit.message, 'coverage') && matrix.php == '8.4' && matrix.laravel == '13.*' && matrix.stability == 'prefer-stable'
8390
uses: timkrase/phpunit-coverage-badge@v1.2.1
8491
with:
8592
coverage_badge_path: .github/coverage.svg

composer.json

Lines changed: 10 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": "^10.48 || ^11.0 || ^12.0",
20+
"illuminate/support": "^10.48 || ^11.0 || ^12.0 || ^13.0",
2121
"matanyadaev/laravel-eloquent-spatial": "^4.6"
2222
},
2323
"require-dev": {
2424
"laravel/pint": "^1.14",
25-
"orchestra/testbench": "^8.0 || ^9.16 || ^10.0",
26-
"phpunit/phpunit": "^10.5 || ^11.5.3"
25+
"orchestra/testbench": "^8.0 || ^9.16 || ^10.0 || ^11.0",
26+
"phpunit/phpunit": "^10.5 || ^11.5.3 || ^12.5.8 || ^13.0.3"
2727
},
2828
"autoload": {
2929
"psr-4": {
@@ -45,6 +45,13 @@
4545
]
4646
}
4747
},
48+
"repositories": [
49+
{
50+
"type": "vcs",
51+
"url": "https://github.com/Javaabu/laravel-eloquent-spatial.git",
52+
"canonical": false
53+
}
54+
],
4855
"minimum-stability": "dev",
4956
"prefer-stable": true
5057
}

0 commit comments

Comments
 (0)