Skip to content

Commit

Permalink
Add Symfony 7 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Dec 9, 2023
1 parent 93ec568 commit 9e226cf
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- "^9.2.16"

symfony-version:
- "^7.0"
- "^6.0"
- "^5.0"

Expand All @@ -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"
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -141,19 +148,19 @@ 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;
- 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

0 comments on commit 9e226cf

Please sign in to comment.