Skip to content

Commit

Permalink
ci: Use flex to enforce the Symfony version (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Dec 3, 2023
1 parent e619690 commit 915b85e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,10 @@ jobs:
matrix:
php:
- '8.2'
variant: ['normal']
dependencies: ['highest']
include:
- php: '8.2'
variant: 'symfony/symfony:"^6.4"'
dependencies: 'highest'
composer-flags: ''
symfony:
- 'unchanged'
- '6.4.*'
fail-fast: false

services:
Expand All @@ -65,15 +62,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Configure Symfony (variant)
if: matrix.variant != 'normal'
run: composer require --dev --no-update ${{ matrix.variant }}
- name: Configure Symfony version
if: matrix.symfony != 'unchanged'
run: echo "SYMFONY_REQUIRE=${{ matrix.symfony }}" >> $GITHUB_ENV

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
tools: composer, flex
extensions: intl, bcmath, curl, openssl, mbstring
ini-values: memory_limit=-1

Expand Down

0 comments on commit 915b85e

Please sign in to comment.