File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 26
26
run : dotnet build --no-restore
27
27
- name : Test
28
28
run : dotnet test --no-build --verbosity normal
29
- - name : Coverage
30
- run : dotnet test --collect:"Code Coverage"
29
+ - name : Generate coverage report
30
+ run : |
31
+ cd ./Tests
32
+ dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov
33
+ - name : Publish coverage report to coveralls.io
34
+ uses : coverallsapp/github-action@master
35
+ with :
36
+ github-token : ${{ secrets.GITHUB_TOKEN }}
37
+ path-to-lcov : ./Tests/TestResults/coverage.info
Original file line number Diff line number Diff line change 1
1
# C# Design Patterns
2
2
3
3
[ ![ .NET] ( https://github.com/deanagan/csharp-design-patterns/actions/workflows/dotnet.yml/badge.svg )] ( https://github.com/deanagan/csharp-design-patterns/actions/workflows/dotnet.yml )
4
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/deanagan/csharp-design-patterns/badge.svg?branch=master )] ( https://coveralls.io/github/deanagan/csharp-design-patterns?branch=master )
4
5
5
6
## csharp-design-patterns
6
7
You can’t perform that action at this time.
0 commit comments