Skip to content

Commit 5ea92bb

Browse files
authored
Merge pull request #7 from feature-ninja/feature/code-coverage
Improve code coverage
2 parents fe9ba2d + 9244d0d commit 5ea92bb

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ jobs:
3434

3535
- name: Execute tests
3636
run: vendor/bin/phpunit
37+
env:
38+
XDEBUG_MODE: coverage
39+
40+
- name: Upload to Codecov
41+
uses: codecov/codecov-action@v2
42+
with:
43+
token: ${{ secrets.CODECOV_TOKEN }}
44+
files: ./build/coverage.xml
45+
verbose: true

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<report>
2121
<html outputDirectory="build/coverage"/>
2222
<text outputFile="build/coverage.txt"/>
23-
<clover outputFile="build/logs/clover.xml"/>
23+
<clover outputFile="build/coverage.xml"/>
2424
</report>
2525
</coverage>
2626
<logging>

0 commit comments

Comments
 (0)