diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43f60bf3b..06f41dfcb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,9 @@ jobs: continue-on-error: true + env: + SYMFONY_PHPUNIT_VERSION: ${{ matrix.php-version == '8.1' && '9.6' || '11.3' }} + strategy: matrix: php-version: @@ -95,15 +98,6 @@ jobs: - name: "Add PHPUnit matcher" run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: "Composer install Twig" - run: composer install - - - name: "Install PHPUnit" - run: vendor/bin/simple-phpunit install - - - name: "PHPUnit version" - run: vendor/bin/simple-phpunit --version - - name: "Prevent installing symfony/translation-contracts 3.0" if: "matrix.extension == 'twig-extra-bundle'" working-directory: extra/${{ matrix.extension }} @@ -113,6 +107,14 @@ jobs: working-directory: extra/${{ matrix.extension }} run: composer install + - name: "Install PHPUnit" + working-directory: extra/${{ matrix.extension }} + run: vendor/bin/simple-phpunit install + + - name: "PHPUnit version" + working-directory: extra/${{ matrix.extension }} + run: vendor/bin/simple-phpunit --version + - name: "Switch use_yield to true" if: "matrix.php-version == '8.2'" run: | @@ -120,7 +122,7 @@ jobs: - name: "Run tests for ${{ matrix.extension }}" working-directory: extra/${{ matrix.extension }} - run: ../../vendor/bin/simple-phpunit + run: vendor/bin/simple-phpunit phpstan: name: "PHPStan"