Skip to content

Commit e1bf715

Browse files
committed
Remove coverage badge step, upload coverage as artifact
Removed the workflow step that generated a code coverage badge. Added a new step to upload the coverage report as an artifact for easier access and download. This change simplifies the workflow by no longer updating a badge and instead providing the raw coverage data.
1 parent 0233e8b commit e1bf715

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ jobs:
6262
- name: Run Tests with Coverage
6363
run: dotnet test --collect:"XPlat Code Coverage" --results-directory ./coverage
6464

65-
- name: Generate Coverage Badge
66-
uses: simon-k/dotnet-code-coverage-badge@v1.0.0
67-
with:
68-
path: coverage/**/coverage.opencover.xml
69-
label: Code Coverage
70-
color: brightgreen
71-
gist-filename: code-coverage.json
72-
gist-id: ${{ secrets.GIST_ID }}
73-
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }}
7465
- name: Pack Nuget
7566
run: dotnet pack ClientNoSqlDB/ClientNoSqlDB.csproj --configuration Release
7667
- name: publish Nuget Packages to GitHub
@@ -81,3 +72,9 @@ jobs:
8172
with:
8273
name: published_nuget
8374
path: ClientNoSqlDB/bin/Release/*.nupkg
75+
- name: Upload Code Coverage Artifact
76+
uses: actions/upload-artifact@v4
77+
with:
78+
name: code_coverage
79+
path: coverage/**/coverage.opencover.xml
80+

0 commit comments

Comments
 (0)