From 6c927fae39d645ee95965301ac336123672f6085 Mon Sep 17 00:00:00 2001 From: Ulrich Lusseau <1121867+metfan@users.noreply.github.com> Date: Wed, 2 Aug 2023 09:45:02 +0200 Subject: [PATCH] Keep only sf6.* in matrix test, allow flex plugin --- .github/workflows/static.yml | 2 +- .github/workflows/unit.yml | 22 +++++++--------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 225508e..ef95e68 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -9,7 +9,7 @@ jobs: - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga with: - args: --dry-run + args: --config=.php-cs-fixer.php --dry-run phpstan: runs-on: ubuntu-latest diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 14268ee..46b013b 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -8,22 +8,12 @@ jobs: fail-fast: false matrix: php: [7.4, 8.0, 8.1, 8.2] - symfony: [4.4.*, 5.4.*, 6.0.*, 6.1.*, 6.2.*, 6.3.*] + symfony: [4.4.*, 5.4.*, 6.*] exclude: - php: 7.4 - symfony: 6.0.* - - php: 7.4 - symfony: 6.1.* - - php: 7.4 - symfony: 6.2.* - - php: 7.4 - symfony: 6.3.* - - php: 8.0 - symfony: 6.1.* - - php: 8.0 - symfony: 6.2.* + symfony: 6.* - php: 8.0 - symfony: 6.3.* + symfony: 6.* services: rabbitmq: @@ -53,12 +43,14 @@ jobs: run: docker restart ${{ job.services.rabbitmq.id }} - name: Install Symfony Flex - run: composer global require --no-progress --no-scripts --no-plugins symfony/flex + run: | + composer global config --no-plugins allow-plugins.symfony/flex true + composer global require --no-progress --no-scripts symfony/flex - name: Install the dependencies env: SYMFONY_REQUIRE: ${{ matrix.symfony }} - run: composer install --no-interaction --prefer-dist --no-progress --no-suggest --no-plugins + run: composer install --no-interaction --prefer-dist --no-progress --no-suggest - name: Wait for broker service run: Tests/bin/wait_broker