Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 84e5538

Browse files
committedFeb 24, 2025·
build: update github actions
1 parent 364bb1d commit 84e5538

File tree

2 files changed

+39
-31
lines changed

2 files changed

+39
-31
lines changed
 

‎.github/workflows/tests.yml

+36-28
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,31 +18,35 @@ 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 ]
1924

2025
steps:
21-
- name: Checkout Code
22-
uses: actions/checkout@v4
23-
24-
- name: Setup PHP
25-
uses: shivammathur/setup-php@v2
26-
with:
27-
php-version: ${{ matrix.php }}
28-
extensions: dom, curl, libxml, mbstring, zip
29-
tools: composer:v2
30-
coverage: none
31-
ini-values: error_reporting=E_ALL
32-
33-
- name: Set Laravel JSON:API Core Version
34-
run: composer require "laravel-json-api/core:^${{ matrix.core }}" --no-update
35-
36-
- name: Install dependencies
37-
uses: nick-fields/retry@v3
38-
with:
39-
timeout_minutes: 5
40-
max_attempts: 5
41-
command: composer update --prefer-dist --no-interaction --no-progress
42-
43-
- name: Execute tests
44-
run: vendor/bin/phpunit
26+
- name: Checkout Code
27+
uses: actions/checkout@v4
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: dom, curl, libxml, mbstring, zip
34+
tools: composer:v2
35+
coverage: none
36+
ini-values: error_reporting=E_ALL
37+
38+
- name: Set Laravel JSON:API Core Version
39+
run: composer require "laravel-json-api/core:^${{ matrix.core }}" --no-update
40+
41+
- name: Set Laravel Version
42+
run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update
43+
44+
- name: Install dependencies
45+
uses: nick-fields/retry@v3
46+
with:
47+
timeout_minutes: 5
48+
max_attempts: 5
49+
command: composer update --prefer-dist --no-interaction --no-progress
50+
51+
- name: Execute tests
52+
run: vendor/bin/phpunit

‎composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
"ext-json": "*",
2828
"illuminate/contracts": "^11.0|^12.0",
2929
"illuminate/pipeline": "^11.0|^12.0",
30-
"laravel-json-api/core": "^4.3.2|^5.0.1",
30+
"laravel-json-api/core": "^4.3.2|^5.2",
3131
"laravel-json-api/validation": "^4.2"
3232
},
3333
"require-dev": {
34-
"laravel-json-api/testing": "^3.0",
34+
"laravel-json-api/testing": "^3.1",
3535
"orchestra/testbench": "^9.0|^10.0",
3636
"phpunit/phpunit": "^10.5|^11.5.3"
3737
},
@@ -50,7 +50,7 @@
5050
"dev-develop": "3.x-dev"
5151
}
5252
},
53-
"minimum-stability": "stable",
53+
"minimum-stability": "dev",
5454
"prefer-stable": true,
5555
"config": {
5656
"sort-packages": true

0 commit comments

Comments
 (0)
Please sign in to comment.