diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1efc53cc..41960853c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ on: jobs: tests: runs-on: ubuntu-latest - name: "PHP ${{ matrix.php }}${{ matrix.symfony != '' && format(', Symfony {0}', matrix.symfony) || '' }}${{ matrix.twig != '' && format(', Twig {0}', matrix.twig) || '' }}${{ matrix.winzou != '' && format(', Winzou {0}', matrix.winzou) || '' }}${{ matrix.composer-flags != '' && format(', Composer with {0}', matrix.composer-flags) || '' }}" + name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, Twig ${{ matrix.twig }}" strategy: fail-fast: false matrix: @@ -68,8 +68,8 @@ jobs: - name: Install dependencies run: | - composer update ${{ matrix.composer-flags }} --no-scripts - (cd src/Component && composer update ${{ matrix.composer-flags }} --no-scripts) + composer update --no-scripts + (cd src/Component && composer update --no-scripts) - name: Prepare test application @@ -114,22 +114,22 @@ jobs: - name: Run smoke tests without friendsofsymfony/rest-bundle willdurand/hateoas-bundle jms/serializer-bundle packages run: | - composer remove friendsofsymfony/rest-bundle willdurand/hateoas-bundle jms/serializer-bundle --no-scripts ${{ matrix.composer-flags }} + composer remove friendsofsymfony/rest-bundle willdurand/hateoas-bundle jms/serializer-bundle --no-scripts (cd src/Bundle/test && bin/console cache:clear --env=test_without_fosrest) - composer require friendsofsymfony/rest-bundle willdurand/hateoas-bundle jms/serializer-bundle --no-scripts ${{ matrix.composer-flags }} + composer require friendsofsymfony/rest-bundle willdurand/hateoas-bundle jms/serializer-bundle --no-scripts - name: Run lint container without winzou/state-machine-bundle package run: | - composer remove winzou/state-machine-bundle --no-scripts ${{ matrix.composer-flags }} + composer remove winzou/state-machine-bundle --no-scripts (cd src/Bundle/test && bin/console cache:clear --env=test_without_state_machine) (cd src/Bundle/test && bin/console lint:container --env=test_without_state_machine) - composer require winzou/state-machine-bundle --no-scripts ${{ matrix.composer-flags }} + composer require winzou/state-machine-bundle --no-scripts - name: Run lint container without twig/twig package run: | - composer remove symfony/twig-bundle --no-scripts ${{ matrix.composer-flags }} + composer remove symfony/twig-bundle --no-scripts (cd src/Bundle/test && bin/console cache:clear --env=test_without_twig) (cd src/Bundle/test && bin/console lint:container --env=test_without_twig) - composer require symfony/twig-bundle --no-scripts ${{ matrix.composer-flags }} + composer require symfony/twig-bundle --no-scripts