diff --git a/.github/workflows/reusable-testing.yml b/.github/workflows/reusable-testing.yml index 0a9f985..4094cac 100644 --- a/.github/workflows/reusable-testing.yml +++ b/.github/workflows/reusable-testing.yml @@ -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