Skip to content

Commit

Permalink
Set versions of all Symfony packages (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Oct 18, 2023
1 parent ce56198 commit 75b6692
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 75b6692

Please sign in to comment.