diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9021240..fa0bb6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/composer-install@3.0.0' 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