Skip to content

Commit cc208be

Browse files
committed
coverage report on tag only
1 parent 6cc1a4f commit cc208be

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,4 @@ jobs:
3030
run: dotnet build --no-restore --configuration Release
3131

3232
- name: Run tests
33-
run: dotnet test --no-build --no-restore --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./TestResults
34-
35-
- name: Upload coverage report
36-
if: github.ref == 'refs/heads/master'
37-
uses: coverallsapp/github-action@v2
38-
with:
39-
format: "cobertura"
40-
file: "TestResults/**/coverage.cobertura.xml"
33+
run: dotnet test --no-build --configuration Release --verbosity normal

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ jobs:
2525
run: dotnet build --no-restore --configuration Release
2626

2727
- name: Run tests
28-
run: dotnet test --no-build --configuration Release --verbosity normal
28+
run: dotnet test --no-build --no-restore --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./TestResults
29+
30+
- name: Upload coverage report
31+
if: github.ref == 'refs/heads/master'
32+
uses: coverallsapp/github-action@v2
2933

3034
publish:
3135
needs: test

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[![NuGet Version](https://img.shields.io/nuget/v/OpenSkillSharp)](https://img.shields.io/nuget/v/OpenSkillSharp)
22
![Downloads](https://img.shields.io/nuget/dt/OpenSkillSharp)
33
![Tests](https://img.shields.io/github/actions/workflow/status/myssto/OpenSkillSharp/ci.yml?label=tests)
4-
![License](https://img.shields.io/github/license/myssto/OpenSkillSharp)
4+
[![Coverage](https://img.shields.io/coverallsCoverage/github/myssto/OpenSkillSharp)](https://coveralls.io/github/myssto/OpenSkillSharp)
5+
[![License](https://img.shields.io/github/license/myssto/OpenSkillSharp)](https://github.com/myssto/OpenSkillSharp/blob/master/LICENSE)
56

67
# Openskill
78

0 commit comments

Comments
 (0)