Skip to content

Commit 0908fb0

Browse files
committed
run tests with specific Symfony versions
1 parent 629899a commit 0908fb0

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/ci.yml

+19-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
run: 'bin/phing composer-dependencies'
128128

129129
tests:
130-
name: 'Tests - PHP ${{ matrix.php-version }}, ${{ matrix.composer-dependencies }} dependencies'
130+
name: 'Tests - PHP ${{ matrix.php-version }}, Symfony: ${{ matrix.symfony-version}}, Composer ${{ matrix.composer-dependencies }} dependencies'
131131
needs: 'lint'
132132
runs-on: 'ubuntu-latest'
133133

@@ -138,6 +138,12 @@ jobs:
138138
- '7.2'
139139
- '7.3'
140140
- '7.4'
141+
symfony-version:
142+
# - '4.0' matthiasnoback/symfony-dependency-injection-test 4.3.0 requires symfony/config ^4.4 || ^5.3 || ^6.0
143+
# - '4.1' matthiasnoback/symfony-dependency-injection-test 4.3.0 requires symfony/config ^4.4 || ^5.3 || ^6.0
144+
# - '4.2' matthiasnoback/symfony-dependency-injection-test 4.3.0 requires symfony/config ^4.4 || ^5.3 || ^6.0
145+
# - '4.3' matthiasnoback/symfony-dependency-injection-test 4.3.0 requires symfony/config ^4.4 || ^5.3 || ^6.0
146+
- '4.4'
141147
composer-dependencies:
142148
- 'highest'
143149
- 'lowest'
@@ -163,6 +169,17 @@ jobs:
163169
uses: 'ramsey/[email protected]'
164170
with:
165171
dependency-versions: '${{ matrix.composer-dependencies }}'
172+
-
173+
name: 'Install specific versions'
174+
env:
175+
COMPOSER_PREFER_LOWEST: ${{ matrix.composer-dependencies == 'lowest' && 1 || 0 }}
176+
run: |
177+
composer update \
178+
--ansi \
179+
--with 'symfony/config=${{ matrix.symfony-version }}.*' \
180+
--with 'symfony/dependency-injection=${{ matrix.symfony-version }}.*' \
181+
--with 'symfony/http-kernel=${{ matrix.symfony-version }}.*' \
182+
--with 'symfony/yaml=${{ matrix.symfony-version }}.*'
166183
-
167184
name: 'Run tests'
168185
run: 'bin/phing tests'
@@ -171,7 +188,7 @@ jobs:
171188
env:
172189
COVERALLS_REPO_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
173190
COVERALLS_PARALLEL: true
174-
COVERALLS_FLAG_NAME: 'php-${{ matrix.php-version }}+${{ matrix.composer-dependencies }}-dependencies'
191+
COVERALLS_FLAG_NAME: 'php-${{ matrix.php-version }}+symfony-${{ matrix.symfony-version }}+${{ matrix.composer-dependencies }}-dependencies'
175192
run: |
176193
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
177194
php php-coveralls.phar --verbose --config build/coveralls.yml

0 commit comments

Comments
 (0)