Skip to content

Commit

Permalink
action-php-8.3: tweaking code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mysiar committed Dec 28, 2023
1 parent ed72860 commit 0cf9ad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: php${{ matrix.php }} ./vendor/bin/ecs check src tests

- name: Code coverage
run: php${{ matrix.php }} -d xdebug.mode=coverage ./vendor/bin/phpunit --coverage-text
run: php${{ matrix.php }} -d xdebug.mode=coverage ./vendor/bin/phpunit

- name: Fix code coverage paths
run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' var/coverage.xml
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<report>
<clover outputFile="var/coverage.xml"/>
<html outputDirectory="var/phpunit" lowUpperBound="50" highLowerBound="85"/>
<text outputFile="php://stdout"/>
</report>
</coverage>
<testsuites>
Expand Down

0 comments on commit 0cf9ad6

Please sign in to comment.