Skip to content

Commit

Permalink
Update dotnet.yml add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
holomodular-support authored Apr 27, 2024
1 parent 47fe6af commit 0e0f9b1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,14 @@ jobs:
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --filter "FullyQualifiedName!~ServiceBricks.Xunit.Integration"
run: dotnet test --no-build --verbosity normal --filter "FullyQualifiedName!~ServiceBricks.Xunit.Integration" -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover
- name: Create Test Coverage Badge
uses: simon-k/[email protected]
id: create_coverage_badge
with:
label: Unit Test Coverage
color: red
path: src/V1/Tests/ServiceBricks.Storage.EntityFrameworkCore.XunitNet8/TestResults/coverage.opencover.xml
gist-filename: servicebricks-codecoverage.json
gist-id: bdb5c7c570a7a88ffb3efb3505273e34
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }}

0 comments on commit 0e0f9b1

Please sign in to comment.