Skip to content

Commit

Permalink
Build: Show code coverage (#63)
Browse files Browse the repository at this point in the history
* Build: Show code coverage

* Build: fix env variable
  • Loading branch information
jbe2277 authored Dec 26, 2024
1 parent 0c42b82 commit 01f4e32
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/System.Waf.CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,16 @@ jobs:
run: |
echo "## 🕵️ Test Results - Samples.UITest.sln" >> $Env:GITHUB_STEP_SUMMARY
dotnet test ./src/Samples.UITest/Samples.UITest.sln --logger GitHubActions -maxCpuCount:1
- name: 🕵️ Code Coverage
run: |
dotnet tool update -g dotnet-coverage
dotnet-coverage merge --output ./out/CodeCoverage/System.Waf.cobertura.xml --output-format cobertura "./src/**/TestResults/**/*.coverage"
dotnet tool update -g dotnet-reportgenerator-globaltool
reportgenerator -reports:./out/CodeCoverage/System.Waf.cobertura.xml -targetdir:./out/CodeCoverage -reporttypes:"MarkdownSummaryGithub"
echo "## 🕵️ Code Coverage" >> $Env:GITHUB_STEP_SUMMARY
cat ./out/CodeCoverage/SummaryGithub.md >> $Env:GITHUB_STEP_SUMMARY
- name: 📦 Upload UI Test results
uses: actions/upload-artifact@v4
if: always()
Expand Down

0 comments on commit 01f4e32

Please sign in to comment.