diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e5b2b9f..ffcc57e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -16,7 +16,7 @@ concurrency: jobs: tests: runs-on: "ubuntu-latest" - name: "Tests with PHP ${{ matrix.php }}" + name: "Tests with PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}" strategy: fail-fast: true matrix: @@ -24,6 +24,13 @@ jobs: - "8.1" - "8.2" - "8.3" + symfony: + - "unchanged" + - "6.*.*" + - "7.*.*" + exclude: + - php: "8.1" + symfony: "7.*.*" steps: - name: "Check out repository code" @@ -33,7 +40,11 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "${{ matrix.php }}" - tools: "composer" + tools: "composer, flex" + + - name: "Configure Symfony version" + if: "matrix.symfony != 'unchanged'" + run: "echo \"SYMFONY_REQUIRE=${{ matrix.symfony }}\" >> $GITHUB_ENV" - name: "Install Composer dependencies" uses: "ramsey/composer-install@v2" diff --git a/composer.json b/composer.json index d5a9ae0..60ae1c5 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ ], "require": { "php": "^8.1", - "symfony/filesystem": "^6.3", + "symfony/filesystem": "^6.3 || ^7.0", "thecodingmachine/safe": "^2.0" }, "require-dev": { @@ -22,7 +22,7 @@ "ergebnis/composer-normalize": "^2.28", "infection/infection": ">=0.26", "phpunit/phpunit": "^10.3", - "symfony/finder": "^6.3" + "symfony/finder": "^6.3 || ^7.0" }, "prefer-stable": true, "autoload": {