Skip to content

Commit 66f7c3a

Browse files
committed
feat: support Laravel 12
1 parent a22dc37 commit 66f7c3a

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ main, develop ]
5+
branches:
6+
- main
7+
- develop
68
pull_request:
7-
branches: [ main, develop ]
9+
branches:
10+
- main
11+
- develop
812

913
jobs:
1014
build:
@@ -14,8 +18,12 @@ jobs:
1418
strategy:
1519
fail-fast: true
1620
matrix:
17-
php: [8.2, 8.3, 8.4]
18-
core: ['4.3.2', '5.0.1']
21+
php: [ 8.2, 8.3, 8.4 ]
22+
core: [ '4.3.2', '5.2' ]
23+
laravel: [ 11, 12 ]
24+
exclude:
25+
- laravel: 12
26+
core: '4.3.2'
1927

2028
steps:
2129
- name: Checkout Code
@@ -33,6 +41,9 @@ jobs:
3341
- name: Set Laravel JSON:API Core Version
3442
run: composer require "laravel-json-api/core:^${{ matrix.core }}" --no-update
3543

44+
- name: Set Laravel Version
45+
run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update
46+
3647
- name: Install dependencies
3748
uses: nick-fields/retry@v3
3849
with:

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"require": {
2626
"php": "^8.2",
2727
"ext-json": "*",
28-
"illuminate/contracts": "^11.0",
29-
"illuminate/support": "^11.0",
30-
"laravel-json-api/core": "^4.3.2|^5.0.1",
28+
"illuminate/contracts": "^11.0|^12.0",
29+
"illuminate/support": "^11.0|^12.0",
30+
"laravel-json-api/core": "^4.3.2|^5.2",
3131
"laravel-json-api/neomerx-json-api": "^5.0.3"
3232
},
3333
"require-dev": {
34-
"phpunit/phpunit": "^10.5"
34+
"phpunit/phpunit": "^10.5|^11.0"
3535
},
3636
"autoload": {
3737
"psr-4": {
@@ -53,7 +53,7 @@
5353
]
5454
}
5555
},
56-
"minimum-stability": "stable",
56+
"minimum-stability": "dev",
5757
"prefer-stable": true,
5858
"config": {
5959
"sort-packages": true

0 commit comments

Comments
 (0)