Skip to content

Commit 6cfa615

Browse files
committed
Add code coverage reports
1 parent 49ecfa7 commit 6cfa615

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ jobs:
4646

4747
- name: Run php unit tests
4848
run: composer run-script unit-tests
49+
50+
- name: Submit coverage report
51+
run: bash <(curl -s https://codecov.io/bash)

phpunit.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,12 @@
1818
<directory suffix="Test.php">./tests/Unit</directory>
1919
</testsuite>
2020
</testsuites>
21+
<logging>
22+
<log type="coverage-clover" target="clover.xml"/>
23+
</logging>
24+
<filter>
25+
<whitelist>
26+
<directory>tests/Unit</directory>
27+
</whitelist>
28+
</filter>
2129
</phpunit>

0 commit comments

Comments
 (0)