Skip to content

Commit

Permalink
Add coverage check to workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihlus committed May 4, 2024
1 parent 04ea0b1 commit fa5e86f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-restore --no-build --verbosity minimal
run: dotnet test -c Release --no-restore --no-build --verbosity minimal --collect:"XPlat Code Coverage" --results-directory ./coverage

- name: Inspect
uses: JetBrains/[email protected]
Expand All @@ -46,6 +46,13 @@ jobs:
no-build: true
telemetry-optout: true

- name: Coverage
uses: irongut/[email protected]
with:
filename: coverage/**/coverage.cobertura.xml
badge: true
format: markdown

- name: Package
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: dotnet pack -c Release --no-restore --no-build --version-suffix "github$GITHUB_RUN_ID"
Expand Down

0 comments on commit fa5e86f

Please sign in to comment.