Skip to content

Commit

Permalink
Fix syntax issue in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Oct 1, 2024
1 parent b82beed commit 233d87c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/reusable-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,19 +244,10 @@ jobs:
id: phpunit_version
run: echo "VERSION=$(vendor/bin/phpunit --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT

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

Expand Down

0 comments on commit 233d87c

Please sign in to comment.