jdecool/scaleway-runtimepublic Fork
⑂ 2d06656
Commits
⬇ Clone ▾
git clone https://git.rickub.com/jdecool/scaleway-runtime.git
git clone ssh://git@rickub.com/jdecool/scaleway-runtime.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

ci: pin the whole Symfony stack per matrix leg with FlexUnverified

Pinning only the direct requirements let transitive components
(event-dispatcher, error-handler, console, ...) resolve to 8.x on the
7.4 leg, so it did not test a real Symfony 7.4 stack. Also validate
composer.json strictly.
Jérémy DECOOL committed 2026-11-13T21:46:54+01:00 Browse files
2d06656 parent: 45070f4
modified .github/workflows/ci.yml +6 -7
@@ -17,6 +17,9 @@ jobs:
1717 matrix:
1818 php: ['8.4', '8.5']
1919 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 }}
2023 steps:
2124 - uses: actions/checkout@v7
2225
@@ -24,14 +27,10 @@ jobs:
2427 with:
2528 php-version: ${{ matrix.php }}
2629 coverage: none
30+ tools: flex
2731
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
3534
3635 - uses: ramsey/composer-install@v4
3736
@@ -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@v724 - 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: none29 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 version33+ 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@v435 - uses: ramsey/composer-install@v4
37 36