Skip to content

Commit 16ad667

Browse files
committed
Switch phpunit configuration condition to PHP version-based
1 parent cff20bd commit 16ad667

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/phpunit.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ jobs:
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646

47+
# Fixes any pubkeys failure (add a `composer diagnose` step to debug if necessary)
4748
- name: "Composer force self-update"
4849
run: "composer self-update"
4950

50-
- name: "Composer diagnostics"
51-
run: "composer diagnose"
52-
5351
- name: "Install lowest dependencies"
5452
if: ${{ matrix.dependencies == 'lowest' }}
5553
run: "composer update --prefer-lowest --no-interaction --no-progress"
@@ -58,10 +56,10 @@ jobs:
5856
if: ${{ matrix.dependencies == 'highest' }}
5957
run: "composer update --no-interaction --no-progress"
6058

61-
- name: "Tests (lowest)"
62-
if: ${{ matrix.dependencies == 'lowest' }}
59+
- name: "Tests (PHPUnit 9)"
60+
if: ${{ matrix.php-version <= '8.0' }}
6361
run: "vendor/bin/phpunit --configuration phpunit9.xml.dist"
6462

65-
- name: "Tests (highest)"
66-
if: ${{ matrix.dependencies == 'highest' }}
63+
- name: "Tests (PHPUnit 10+)"
64+
if: ${{ matrix.php-version >= '8.1' }}
6765
run: "vendor/bin/phpunit"

0 commit comments

Comments
 (0)