diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index f0ef762b6..098ab9467 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -131,6 +131,11 @@ jobs: if: "matrix.dependencies == 'locked'" run: "composer install ${{ env.COMPOSER_FLAGS }}" + - name: "Require latest PHPUnitBridge for PHP 8" + if: "matrix.php-version == '8.0'" + run: | + composer require --no-update --dev symfony/phpunit-bridge:^5.1.0-RC2 + - name: "Update Symfony's PHPUnitBridge to latest available for the current PHP always as it is not really a dependency of the project" run: "composer update ${{ env.COMPOSER_FLAGS }} symfony/phpunit-bridge" @@ -143,11 +148,6 @@ jobs: - name: "Prepare git environment" run: "git config --global user.name composer && git config --global user.email composer@example.com" - - name: "Require latest PHPUnitBridge for PHP 8" - if: "matrix.php-version == '8.0'" - run: | - composer require --dev symfony/phpunit-bridge:^5.1.0-RC2 - - name: "Run tests" if: "matrix.php-version != '7.3'" run: "vendor/bin/simple-phpunit"