Skip to content

Commit 03bf385

Browse files
committed
Refactor GitHub Actions workflow to update PHP and Laravel matrix configurations and upgrade checkout action version
1 parent f4786d6 commit 03bf385

File tree

1 file changed

+10
-29
lines changed

1 file changed

+10
-29
lines changed

.github/workflows/main.yml

+10-29
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,6 @@ on:
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10-
strategy:
11-
fail-fast: true
12-
matrix:
13-
php: ['8.0', 8.1, 8.2, 8.3, 8.4]
14-
laravel: [8, 9, 10, 11, 12]
15-
exclude:
16-
- php: '8.0'
17-
laravel: 10
18-
- php: '8.0'
19-
laravel: 11
20-
- php: '8.1'
21-
laravel: 11
22-
- php: '8.1'
23-
laravel: 12
24-
- php: '8.2'
25-
laravel: 8
26-
- php: '8.3'
27-
laravel: 8
28-
- php: '8.3'
29-
laravel: 9
30-
- php: '8.4'
31-
laravel: 8
32-
- php: '8.4'
33-
laravel: 9
34-
- php: '8.4'
35-
laravel: 10
36-
37-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
3810

3911
services:
4012
mysql:
@@ -46,9 +18,18 @@ jobs:
4618
- 3306
4719
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
4820

21+
strategy:
22+
fail-fast: true
23+
matrix:
24+
php: [8.2, 8.3, 8.4]
25+
laravel: [11, 12]
26+
stability: [prefer-lowest, prefer-stable]
27+
28+
name: P${{ matrix.php }} - L${{ matrix.laravel }}
29+
4930
steps:
5031
- name: Checkout code
51-
uses: actions/checkout@v2
32+
uses: actions/checkout@v4
5233

5334
- name: Setup PHP
5435
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)