Skip to content

Commit 887a701

Browse files
Copilotrabbitism
andcommitted
Add test coverage reporting to GitHub workflow
Co-authored-by: rabbitism <[email protected]>
1 parent f1781f0 commit 887a701

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,12 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/[email protected]
24-
- name: Unit Test
25-
run: dotnet test test/UnitTest
24+
- name: Unit Test with Coverage
25+
run: dotnet test test/UnitTest --collect:"XPlat Code Coverage" --results-directory ./coverage
26+
- name: Upload coverage reports to Codecov
27+
uses: codecov/[email protected]
28+
with:
29+
directory: ./coverage
30+
fail_ci_if_error: false
31+
env:
32+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)