Skip to content

Commit 740ac51

Browse files
author
Roman Titov
authored
Update dotnetcore.yml
1 parent 6640458 commit 740ac51

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,16 @@ jobs:
1616

1717
- name: Build with dotnet
1818
run: dotnet build src/MockQueryable/*.sln --configuration Release
19-
- name: Test with dotnet
20-
run: dotnet test src/MockQueryable/*.sln
19+
- name: Test with coverage (coverlet)
20+
run: |
21+
dotnet test src/MockQueryable/*.sln \
22+
--configuration Release \
23+
--no-build \
24+
/p:CollectCoverage=true \
25+
/p:CoverletOutput=./TestResults/coverage/ \
26+
/p:CoverletOutputFormat=opencover
27+
- name: Upload coverage results (artifact)
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: code-coverage
31+
path: ./TestResults

0 commit comments

Comments
 (0)