Skip to content

Commit bd92545

Browse files
committed
chore: make package compatible with laravel 12
Signed-off-by: Fred Myerscough <[email protected]>
1 parent fb716aa commit bd92545

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ ubuntu-latest ]
15-
php-versions: [ 8.3 ]
15+
php-versions: [ 8.4 ]
1616

1717
name: PHP ${{ matrix.php-versions }} - ${{ matrix.os }}
1818
steps:

.github/workflows/tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest, windows-latest]
17-
php-versions: [ 8.2, 8.3 ]
17+
php-versions: [ 8.4 ]
18+
laravel-versions: [ 11, 12 ]
1819

19-
name: PHP ${{ matrix.php-versions }} - ${{ matrix.os }}
20+
name: PHP ${{ matrix.php-versions }} - Laravel ${{ matrix.laravel-versions }} - ${{ matrix.os }}
2021
steps:
2122

2223
- name: Checkout
@@ -29,8 +30,10 @@ jobs:
2930
coverage: xdebug
3031
extensions: intl, fileinfo
3132

32-
- name: Install dependencies
33-
run: composer install --prefer-dist --no-progress --no-interaction
33+
- name: Install dependencies (Laravel ${{ matrix.laravel-versions }})
34+
run: |
35+
composer require "illuminate/support:^${{ matrix.laravel-versions }}.0" "illuminate/config:^${{ matrix.laravel-versions }}.0" --no-update
36+
composer update --prefer-dist --no-progress --no-interaction
3437
3538
- name: Run Test Suite
3639
run: composer run test

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"ext-intl": "*",
2525
"php": "^8.4",
2626
"guzzlehttp/guzzle": "^7.2",
27-
"illuminate/config": "^11.0",
28-
"illuminate/support": "^11.0",
27+
"illuminate/config": "^11.0|^12.0",
28+
"illuminate/support": "^11.0|^12.0",
2929
"jeremykendall/php-domain-parser": "^6.2"
3030
},
3131
"require-dev": {
32-
"orchestra/testbench": "v9.0.3",
32+
"orchestra/testbench": "^9.0|^10.0",
3333
"phpunit/phpunit": "^11.0"
3434
},
3535
"autoload": {

0 commit comments

Comments
 (0)