Skip to content

Commit

Permalink
Only do coverage on PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Sep 13, 2021
1 parent 05a09a4 commit 95769cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,23 @@ jobs:
composer update --no-interaction --prefer-dist --ignore-platform-reqs;
composer show;
- name: PHPUnit (Xdebug)
- name: PHPUnit
run: |
php -dmemory_limit=-1 vendor/phpunit/phpunit/phpunit --exclude-group=efficiency;
if [ "${{ matrix.php-version }}" = "8.0" ]; then
if [ "${{ matrix.php-version }}" = "8.0" ] && [ "${{ matrix.dependencies }}" = "highest" ]; then
php -dmemory_limit=-1 vendor/phpunit/phpunit/phpunit --exclude-group=efficiency;
composer global require scrutinizer/ocular;
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-phpunit/clover.xml;
else
php -dmemory_limit=-1 vendor/phpunit/phpunit/phpunit --exclude-group=efficiency --no-coverage;
fi;
- name: Behat (Xdebug)
- name: Behat
run: |
php -dmemory_limit=-1 vendor/behat/behat/bin/behat --strict;
if [ "${{ matrix.php-version }}" = "8.0" ]; then
if [ "${{ matrix.php-version }}" = "8.0" ] && [ "${{ matrix.dependencies }}" = "highest" ]; then
php -dmemory_limit=-1 vendor/behat/behat/bin/behat --strict;
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-behat/clover.xml;
else
php -dmemory_limit=-1 vendor/behat/behat/bin/behat --strict --no-coverage;
fi;
- name: Check code style
Expand Down Expand Up @@ -222,4 +226,4 @@ jobs:
run: vendor/bin/phpunit --no-coverage;

- name: Behat (no coverage)
run: vendor/bin/behat --strict;
run: vendor/bin/behat --strict --no-coverage;
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require-dev": {
"behat/behat": "^3.7",
"friendsofphp/php-cs-fixer": "^3.0",
"dvdoug/behat-code-coverage": "^5.0",
"dvdoug/behat-code-coverage": "^5.0.1",
"monolog/monolog": "^1.0||^2.0",
"phpunit/phpunit": "^7.5.20||^8.5.21||^9.5.8"
},
Expand Down

0 comments on commit 95769cd

Please sign in to comment.