Skip to content

Commit a6abecd

Browse files
authored
Integrate Codecov for coverage report uploads
Added Codecov upload step for coverage reports.
1 parent 00d76a3 commit a6abecd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/dotnet-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ jobs:
2929

3030
- name: Test
3131
run: dotnet test --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./TestResults
32+
33+
- name: Upload coverage reports to Codecov
34+
if: matrix.os == 'ubuntu-latest'
35+
uses: codecov/codecov-action@v5
36+
with:
37+
directory: ./TestResults
38+
fail_ci_if_error: false
39+
verbose: true
40+
env:
41+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3242

3343
- name: Generate Coverage Report
3444
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.2

0 commit comments

Comments
 (0)