Skip to content

Commit

Permalink
Add coverage codecov (nelmio#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yozhef authored Mar 7, 2021
1 parent b57f4c6 commit f174420
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,10 @@ jobs:
run: composer install

- name: Run PHPUnit tests
run: bin/phpunit
run: bin/phpunit --coverage-clover=coverage.xml

- name: Run codecov
uses: codecov/codecov-action@v1
with:
file: './coverage.xml'
fail_ci_if_error: true
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: false
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>

<logging>
<log type="coverage-clover" target="clover.xml"/>
</logging>

<coverage>
<include>
<directory>src</directory>
Expand Down

0 comments on commit f174420

Please sign in to comment.