Skip to content

Commit 96ce52b

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

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@ 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: Report code coverage
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: code-coverage-report
32+
path: |
33+
**/TestResults/**/*.xml

0 commit comments

Comments
 (0)