From 9e226cff1ad8434f10a652162020a3321b9f9143 Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Sat, 9 Dec 2023 14:14:19 +0000 Subject: [PATCH] Add Symfony 7 to CI --- .github/workflows/ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c80bcd..b0827fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: - "^9.2.16" symfony-version: + - "^7.0" - "^6.0" - "^5.0" @@ -40,6 +41,12 @@ jobs: - "pcov" exclude: + - php-version: "8.1" + symfony-version: "^7.0" + - php-version: "8.0" + symfony-version: "^7.0" + - php-version: "7.4" + symfony-version: "^7.0" - php-version: "7.4" symfony-version: "^6.0" - php-version: "8.0" @@ -103,7 +110,7 @@ jobs: run: composer require --no-update "phpunit/php-code-coverage:${{ matrix.php-code-coverage-version }}" - name: Remove PHP-CS-Fixer if not called - if: matrix.php-version != '8.1' || matrix.symfony-version != '^5.0' || matrix.dependencies != 'highest' + if: matrix.php-version != '8.2' || matrix.symfony-version != '^6.0' || matrix.dependencies != 'highest' run: composer remove --dev --no-update "friendsofphp/php-cs-fixer"; - name: Install dependencies (low) @@ -141,7 +148,7 @@ jobs: else php -dmemory_limit=-1 vendor/phpunit/phpunit/phpunit --coverage-clover=build/coverage-phpunit/clover.xml; fi; - if [ "${{ matrix.php-version }}" = "8.1" ] && [ "${{ matrix.driver }}" != "none" ]; then + if [ "${{ matrix.php-version }}" = "8.2" ] && [ "${{ matrix.driver }}" != "none" ]; then composer global require scrutinizer/ocular; ~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-phpunit/clover.xml; fi; @@ -149,11 +156,11 @@ jobs: - name: Behat run: | php -dmemory_limit=-1 vendor/behat/behat/bin/behat --strict; - if [ "${{ matrix.php-version }}" = "8.1" ] && [ "${{ matrix.driver }}" != "none" ]; then + if [ "${{ matrix.php-version }}" = "8.2" ] && [ "${{ matrix.driver }}" != "none" ]; then composer global require scrutinizer/ocular; ~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-behat/clover.xml; fi; - name: Check code style - if: matrix.php-version == '8.1' && matrix.symfony-version == '^5.0' && matrix.dependencies == 'highest' + if: matrix.php-version == '8.2' && matrix.symfony-version == '^6.0' && matrix.dependencies == 'highest' run: vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --allow-risky=yes