File tree Expand file tree Collapse file tree 6 files changed +15
-7
lines changed Expand file tree Collapse file tree 6 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 14
14
strategy :
15
15
fail-fast : true
16
16
matrix :
17
- php : [ '7.4', '8.0', '8.1' ]
18
- laravel : [ '^8.76' ]
17
+ php : [7.4, '8.0', 8.1]
18
+ laravel : [8.76, 9]
19
+ exclude :
20
+ - php : 7.4
21
+ laravel : 9
19
22
20
23
steps :
21
24
- name : Checkout Code
@@ -31,14 +34,14 @@ jobs:
31
34
ini-values : error_reporting=E_ALL
32
35
33
36
- name : Set Laravel Version
34
- run : composer require "laravel/framework:${{ matrix.laravel }}" --no-update -n
37
+ run : composer require "laravel/framework:^ ${{ matrix.laravel }}" --no-update
35
38
36
39
- name : Install dependencies
37
40
uses : nick-invision/retry@v1
38
41
with :
39
42
timeout_minutes : 5
40
43
max_attempts : 5
41
- command : composer install --no-suggest --prefer-dist -n -o
44
+ command : composer update --prefer-dist --no-interaction --no-progress
42
45
43
46
- name : Execute tests
44
47
run : vendor/bin/phpunit
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. This projec
7
7
8
8
### Added
9
9
10
+ - This package now supports Laravel 9.
10
11
- This package now supports PHP 8.1.
11
12
12
13
### Changed
Original file line number Diff line number Diff line change 31
31
"laravel-json-api/exceptions" : " ^1.1" ,
32
32
"laravel-json-api/spec" : " ^1.1" ,
33
33
"laravel-json-api/validation" : " ^2.0" ,
34
- "laravel/framework" : " ^8.76"
34
+ "laravel/framework" : " ^8.76|^9.0 "
35
35
},
36
36
"require-dev" : {
37
37
"cloudcreativity/json-api-testing" : " ^4.0" ,
38
38
"laravel-json-api/testing" : " ^1.1" ,
39
- "orchestra/testbench" : " ^6.23" ,
39
+ "orchestra/testbench" : " ^6.23|^7.0 " ,
40
40
"phpunit/phpunit" : " ^9.5.10"
41
41
},
42
42
"autoload" : {
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ public function rules(): array
43
43
'array ' ,
44
44
JsonApiRule::filter (),
45
45
],
46
+ 'filter.id ' => ['array ' ],
47
+ 'filter.id.* ' => ['integer ' ],
48
+ 'filter.published ' => [JsonApiRule::boolean ()->asString ()],
49
+ 'filter.slug ' => ['string ' ],
46
50
'include ' => [
47
51
'nullable ' ,
48
52
'string ' ,
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ public function rules(): array
44
44
JsonApiRule::filter ()->forget ('id ' ),
45
45
],
46
46
'filter.published ' => ['boolean ' ],
47
+ 'filter.slug ' => ['string ' ],
47
48
'include ' => [
48
49
'nullable ' ,
49
50
'string ' ,
Original file line number Diff line number Diff line change @@ -216,7 +216,6 @@ public function testFilteredAndPaginated(): void
216
216
];
217
217
218
218
$ response = $ this
219
- ->withoutExceptionHandling ()
220
219
->jsonApi ()
221
220
->expects ('posts ' )
222
221
->filter (['published ' => 'true ' ])
You can’t perform that action at this time.
0 commit comments