Skip to content

Commit 5636430

Browse files
ci: run --prefer-lowest run only for lowest supported PHP version (#266)
* ci: run --prefer-lowest run only for lowest supported PHP version * ci: run --prefer-lowest run only for lowest supported PHP version --------- Co-authored-by: Christopher Georg <[email protected]>
1 parent 4c0c864 commit 5636430

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/phpunit.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ jobs:
1010
phpunit:
1111
name: "PHPUnit tests"
1212

13-
runs-on: ${{ matrix.operating-system }}
13+
runs-on: "ubuntu-latest"
1414

1515
strategy:
1616
matrix:
1717
dependencies:
18-
- "lowest"
1918
- "highest"
2019
php-version:
2120
- "7.2"
@@ -25,8 +24,10 @@ jobs:
2524
- "8.1"
2625
- "8.2"
2726
- "8.3"
28-
operating-system:
29-
- "ubuntu-latest"
27+
28+
include:
29+
- php-version: '7.2'
30+
dependencies: "lowest"
3031

3132
steps:
3233
- name: "Checkout"
@@ -42,11 +43,11 @@ jobs:
4243

4344
- name: "Install lowest dependencies"
4445
if: ${{ matrix.dependencies == 'lowest' }}
45-
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
46+
run: "composer update --prefer-lowest --no-interaction --no-progress"
4647

4748
- name: "Install highest dependencies"
4849
if: ${{ matrix.dependencies == 'highest' }}
49-
run: "composer update --no-interaction --no-progress --no-suggest"
50+
run: "composer update --no-interaction --no-progress"
5051

5152
- name: "Tests"
5253
run: "vendor/bin/phpunit"

0 commit comments

Comments
 (0)