-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run tests with specific Symfony versions
- Loading branch information
1 parent
c248813
commit bba0923
Showing
1 changed file
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,7 +127,7 @@ jobs: | |
run: 'bin/phing composer-dependencies' | ||
|
||
tests: | ||
name: 'Tests - PHP ${{ matrix.php-version }}, ${{ matrix.composer-dependencies }} dependencies' | ||
name: 'Tests - PHP ${{ matrix.php-version }}, Symfony: ${{ matrix.symfony-version}}, Composer ${{ matrix.composer-dependencies }} dependencies' | ||
needs: 'lint' | ||
runs-on: 'ubuntu-latest' | ||
|
||
|
@@ -138,6 +138,12 @@ jobs: | |
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
symfony-version: | ||
# - '4.0' matthiasnoback/symfony-dependency-injection-test 4.3.0 requires symfony/config ^4.4 || ^5.3 || ^6.0 | ||
# - '4.1' matthiasnoback/symfony-dependency-injection-test 4.3.0 requires symfony/config ^4.4 || ^5.3 || ^6.0 | ||
# - '4.2' matthiasnoback/symfony-dependency-injection-test 4.3.0 requires symfony/config ^4.4 || ^5.3 || ^6.0 | ||
# - '4.3' matthiasnoback/symfony-dependency-injection-test 4.3.0 requires symfony/config ^4.4 || ^5.3 || ^6.0 | ||
- '4.4' | ||
composer-dependencies: | ||
- 'highest' | ||
- 'lowest' | ||
|
@@ -163,6 +169,17 @@ jobs: | |
uses: 'ramsey/[email protected]' | ||
with: | ||
dependency-versions: '${{ matrix.composer-dependencies }}' | ||
- | ||
name: 'Install specific versions' | ||
env: | ||
COMPOSER_PREFER_LOWEST: ${{ matrix.composer-dependencies == 'lowest' && 1 || 0 }} | ||
run: | | ||
composer update \ | ||
--ansi \ | ||
--with 'symfony/config=${{ matrix.symfony-version }}.*' \ | ||
--with 'symfony/dependency-injection=${{ matrix.symfony-version }}.*' \ | ||
--with 'symfony/http-kernel=${{ matrix.symfony-version }}.*' \ | ||
--with 'symfony/yaml=${{ matrix.symfony-version }}.*' | ||
- | ||
name: 'Run tests' | ||
run: 'bin/phing tests' | ||
|
@@ -171,7 +188,7 @@ jobs: | |
env: | ||
COVERALLS_REPO_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
COVERALLS_PARALLEL: true | ||
COVERALLS_FLAG_NAME: 'php-${{ matrix.php-version }}+${{ matrix.composer-dependencies }}-dependencies' | ||
COVERALLS_FLAG_NAME: 'php-${{ matrix.php-version }}+symfony-${{ matrix.symfony-version }}+${{ matrix.composer-dependencies }}-dependencies' | ||
run: | | ||
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar | ||
php php-coveralls.phar --verbose --config build/coveralls.yml | ||
|