▾ modified .github/workflows/ci.yml +6 -7 Viewed
@@ -17,6 +17,9 @@ jobs: 17 17 matrix: 18 18 php: ['8.4', '8.5'] 19 19 symfony: ['7.4.*', '8.*'] 20 + env: 21 + # Flex caps every symfony/* package, transitive ones included, so the whole stack matches the line under test. 22 + SYMFONY_REQUIRE: ${{ matrix.symfony }} 20 23 steps: 21 24 - uses: actions/checkout@v7 22 25 @@ -24,14 +27,10 @@ jobs: 24 27 with: 25 28 php-version: ${{ matrix.php }} 26 29 coverage: none 30 + tools: flex 27 31 28 - # No lock file for a library, so pinning the constraints is what selects the Symfony line under test. 29 - - name: Pin Symfony version 30 - run: >- 31 - composer require --no-update --no-interaction 32 - 'symfony/http-foundation:${{ matrix.symfony }}' 33 - 'symfony/http-kernel:${{ matrix.symfony }}' 34 - 'symfony/runtime:${{ matrix.symfony }}' 32 + - name: Validate composer.json 33 + run: composer validate --strict 35 34 36 35 - uses: ramsey/composer-install@v4 37 36
@@ -17,6 +17,9 @@ jobs: 17 matrix: 17 matrix: 18 php: ['8.4', '8.5'] 18 php: ['8.4', '8.5'] 19 symfony: ['7.4.*', '8.*'] 19 symfony: ['7.4.*', '8.*'] 20 + env: 21 + # Flex caps every symfony/* package, transitive ones included, so the whole stack matches the line under test. 22 + SYMFONY_REQUIRE: ${{ matrix.symfony }} 20 steps: 23 steps: 21 - uses: actions/checkout@v7 24 - uses: actions/checkout@v7 22 25 @@ -24,14 +27,10 @@ jobs: 24 with: 27 with: 25 php-version: ${{ matrix.php }} 28 php-version: ${{ matrix.php }} 26 coverage: none 29 coverage: none 30 + tools: flex 27 31 28 - # No lock file for a library, so pinning the constraints is what selects the Symfony line under test. 32 + - name: Validate composer.json 29 - - name: Pin Symfony version 33 + run: composer validate --strict 30 - run: >- 31 - composer require --no-update --no-interaction 32 - 'symfony/http-foundation:${{ matrix.symfony }}' 33 - 'symfony/http-kernel:${{ matrix.symfony }}' 34 - 'symfony/runtime:${{ matrix.symfony }}' 35 34 36 - uses: ramsey/composer-install@v4 35 - uses: ramsey/composer-install@v4 37 36