Skip to content

Commit 8520c45

Browse files
committed
Update readme and workflow
1 parent 5688c46 commit 8520c45

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,12 @@ jobs:
2626
run: dotnet build --no-restore
2727
- name: Test
2828
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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# C# Design Patterns
22

33
[![.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)
45

56
## csharp-design-patterns
67

0 commit comments

Comments
 (0)