File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments