Skip to content

Commit 40cba27

Browse files
committed
fix(ci): pin full Symfony component set for matrix installs
Require all used Symfony packages (incl. event-dispatcher) then run a full composer update so 8.1 resolves like DeviceIntelligenceBundle.
1 parent b988481 commit 40cba27

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,27 @@ jobs:
7272
7373
- name: Install dependencies with Symfony ${{ matrix.symfony }}
7474
run: |
75-
SYMFONY_PACKAGES="symfony/config:^${{ matrix.symfony }} symfony/dependency-injection:^${{ matrix.symfony }} symfony/framework-bundle:^${{ matrix.symfony }} symfony/http-kernel:^${{ matrix.symfony }} symfony/yaml:^${{ matrix.symfony }}"
75+
composer require \
76+
"symfony/config:^${{ matrix.symfony }}" \
77+
"symfony/dependency-injection:^${{ matrix.symfony }}" \
78+
"symfony/event-dispatcher:^${{ matrix.symfony }}" \
79+
"symfony/form:^${{ matrix.symfony }}" \
80+
"symfony/framework-bundle:^${{ matrix.symfony }}" \
81+
"symfony/http-foundation:^${{ matrix.symfony }}" \
82+
"symfony/http-kernel:^${{ matrix.symfony }}" \
83+
"symfony/routing:^${{ matrix.symfony }}" \
84+
"symfony/security-bundle:^${{ matrix.symfony }}" \
85+
"symfony/security-core:^${{ matrix.symfony }}" \
86+
"symfony/security-csrf:^${{ matrix.symfony }}" \
87+
"symfony/twig-bundle:^${{ matrix.symfony }}" \
88+
"symfony/validator:^${{ matrix.symfony }}" \
89+
"symfony/yaml:^${{ matrix.symfony }}" \
90+
--no-interaction --no-update
7691
if [[ "${{ matrix.symfony }}" == 8.* ]]; then
7792
# doctrine/doctrine-bundle 2.x supports Symfony only up to 7.x; Symfony 8 needs 3.2+ (PHP 8.4+).
78-
SYMFONY_PACKAGES="${SYMFONY_PACKAGES} doctrine/doctrine-bundle:^3.2 doctrine/orm:^3.4"
93+
composer require "doctrine/doctrine-bundle:^3.2" "doctrine/orm:^3.4" --no-interaction --no-update
7994
fi
80-
composer update ${SYMFONY_PACKAGES} --with-all-dependencies --no-interaction --prefer-dist --no-progress
95+
composer update --with-all-dependencies --no-interaction --prefer-dist --no-progress
8196
8297
- name: Composer audit (Critical/High)
8398
run: composer audit --locked

0 commit comments

Comments
 (0)