Skip to content

Commit bea4761

Browse files
committed
Experiment: generate code coverage with CI
1 parent bb0accf commit bea4761

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@ jobs:
2323
run: dotnet restore
2424
- name: Build
2525
run: dotnet build --no-restore
26-
- name: Test
27-
run: dotnet test --no-build --verbosity normal
26+
- name: Test with coverage
27+
run: dotnet test --no-build --collect:"XPlat Code Coverage" --verbosity normal
28+
- name: Upload coverage to Codecov
29+
uses: codecov/codecov-action@v4
30+
with:
31+
files: '**/TestResults/**/*.xml'
32+
fail_ci_if_error: true

0 commit comments

Comments
 (0)