Skip to content

Commit

Permalink
Use Flex tool from setup-php action to lock Symfony version
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker authored and Zales0123 committed Sep 2, 2022
1 parent 8cd068a commit f35d551
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
with:
php-version: "${{ matrix.php }}"
extensions: intl
tools: symfony
tools: flex,symfony
coverage: none

-
Expand Down Expand Up @@ -92,12 +92,10 @@ jobs:
${{ runner.os }}-php-${{ matrix.php }}-composer-
-
name: Restrict Symfony version
if: matrix.symfony != ''
name: Configure global composer
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10"
composer config extra.symfony.require "${{ matrix.symfony }}"
-
name: Restrict Sylius version
Expand All @@ -107,6 +105,8 @@ jobs:
-
name: Install PHP dependencies
run: composer install --no-interaction
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}

-
name: Get Yarn cache directory
Expand Down

0 comments on commit f35d551

Please sign in to comment.