diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f5080b80..3b935dbd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,7 +3,7 @@ name: CI on: pull_request: push: - branches: [ master, 2.x, 1.x ] + branches: [ master, 2.x ] jobs: run: @@ -46,17 +46,27 @@ jobs: php-version: ${{ matrix.php }} - name: Install dependencies - run: composer require "symfony/symfony:${{ matrix.symfony-versions }}" --no-update + run: composer install + + - name: Setup Symfony version + run: composer bin symfony require "symfony/symfony:${{ matrix.symfony-versions }}" --no-update if: matrix.symfony-versions - - name: Install dependencies - run: composer install + - name: Install bin dependencies + run: composer bin symfony install + if: matrix.symfony-versions - name: Run PHPUnit tests run: XDEBUG_MODE=coverage bin/phpunit --coverage-clover=coverage.xml + if: false == matrix.symfony-versions + + - name: Run Symfony tests + run: bin/phpunit --configuration phpunit_symfony.xml.dist + if: matrix.symfony-versions - name: Run codecov uses: codecov/codecov-action@v1 with: file: './coverage.xml' fail_ci_if_error: true + if: false == matrix.symfony-versions