Skip to content

Commit 233d87c

Browse files
committed
Fix syntax issue in workflow
1 parent b82beed commit 233d87c

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

.github/workflows/reusable-testing.yml

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

247-
- name: Determine PHPUnit flavour
248-
id: phpunit_flavour
249-
run: |
250-
if [ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}" == "true" ]; then
251-
echo 'FLAVOUR=gte10' >> $GITHUB_OUTPUT
252-
else
253-
echo 'FLAVOUR=lte9' >> $GITHUB_OUTPUT
254-
fi
255-
256247
# PHPUnit 10 may fail a test run when the "old" configuration format is used.
257248
# Luckily, there is a build-in migration tool since PHPUnit 9.3.
258249
- name: Migrate PHPUnit configuration for PHPUnit 10+
259-
if: ${{ steps.phpunit_flavour.outputs.FLAVOUR == 'gte10' }}
250+
if: ${{ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
260251
continue-on-error: true
261252
run: composer phpunit -- --migrate-configuration
262253

0 commit comments

Comments
 (0)