From 75b6692972c4d01d759e56a6595014dbffa64740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Wed, 18 Oct 2023 14:34:30 +0200 Subject: [PATCH] Set versions of all Symfony packages (#70) --- .github/workflows/php.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yaml b/.github/workflows/php.yaml index 7ee1f09..99ecce8 100644 --- a/.github/workflows/php.yaml +++ b/.github/workflows/php.yaml @@ -55,10 +55,16 @@ jobs: php-version: ${{ matrix.php }} coverage: none + - id: symfony_packages + shell: bash + run: | + jq --raw-output '"with_string=" + (["--with=" + ((."require" + ."require-dev") | keys[] | select(contains("symfony/"))) + ":${{ matrix.symfony_version }}"] | join(" "))' composer.json \ + >>"$GITHUB_OUTPUT" + - uses: ramsey/composer-install@v2 with: dependency-versions: ${{ matrix.dependencies }} - composer-options: '--with=symfony/console:${{ matrix.symfony_version }}' + composer-options: ${{ steps.symfony_packages.outputs.with_string }} - run: composer exec -- phpunit --testsuite EndToEnd @@ -84,10 +90,16 @@ jobs: php-version: ${{ matrix.php }} coverage: none + - id: symfony_packages + shell: bash + run: | + jq --raw-output '"with_string=" + (["--with=" + ((."require" + ."require-dev") | keys[] | select(contains("symfony/"))) + ":${{ matrix.symfony_version }}"] | join(" "))' composer.json \ + >>"$GITHUB_OUTPUT" + - uses: ramsey/composer-install@v2 with: dependency-versions: ${{ matrix.dependencies }} - composer-options: '--with=symfony/console:${{ matrix.symfony_version }}' + composer-options: ${{ steps.symfony_packages.outputs.with_string }} - run: composer normalize --dry-run