Skip to content

Commit 62688cb

Browse files
committed
Improve matrix
1 parent 16c109a commit 62688cb

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/php-qa.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ jobs:
88
strategy:
99
matrix:
1010
php: ['7.0', '7.1', '7.2', '7.3', '7.4']
11-
dependencies:
12-
- "lowest"
13-
- "highest"
11+
prefer:
12+
- " --prefer-lowest"
13+
- ""
14+
ignore-platform:
15+
- ""
1416
experimental:
15-
- false
17+
- false
1618
include:
1719
- php: "8.0"
18-
dependencies: "highest"
19-
composer-options: "--ignore-platform-reqs"
20+
prefer: ""
21+
ignore-platform: " --ignore-platform-reqs"
2022
experimental: true
2123

2224
continue-on-error: ${{ matrix.experimental }}
@@ -33,12 +35,7 @@ jobs:
3335
run: find ./src/ ./tests/src/ ./tests/cases/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
3436

3537
- name: Install dependencies
36-
run: composer install -q -n -a --no-progress --prefer-dist
37-
if: ${{ matrix.php < 8 }}
38-
39-
- name: Install dependencies
40-
run: composer install -q -n -a --no-progress --prefer-dist --ignore-platform-reqs
41-
if: ${{ matrix.php >= 8 }}
38+
run: composer install -q -n -a --no-progress --prefer-dist${{ matrix.prefer }}${{ matrix.ignore-platform }}
4239

4340
- name: Run unit tests (>= 7.3)
4441
if: ${{ matrix.php >= 7.3 }}

0 commit comments

Comments
 (0)