Skip to content

Commit dd23312

Browse files
committed
Migrate PHPUnit configuration for PHPUnit 11 & 12 also
1 parent 9ac6d27 commit dd23312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/reusable-testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ jobs:
267267
id: phpunit_version
268268
run: echo "VERSION=$(vendor/bin/phpunit --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT
269269

270-
# PHPUnit 10 may fail a test run when the "old" configuration format is used.
270+
# PHPUnit 10+ may fail a test run when the "old" configuration format is used.
271271
# Luckily, there is a build-in migration tool since PHPUnit 9.3.
272272
- name: Migrate PHPUnit configuration for PHPUnit 10+
273-
if: ${{ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
273+
if: ${{ startsWith( steps.phpunit_version.outputs.VERSION, '1' ) }}
274274
continue-on-error: true
275275
run: composer phpunit -- --migrate-configuration
276276

0 commit comments

Comments
 (0)