Skip to content

Commit

Permalink
Add coverage report upload and summary generation to CI workflow 📊
Browse files Browse the repository at this point in the history
This commit message was generated by GitHub Copilot 🤖
  • Loading branch information
0GiS0 committed Dec 28, 2024
1 parent 4397fba commit 9cf0580
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,16 @@ jobs:

- name: Run tests with coverage
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura

- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: src/coverage.cobertura.xml

- name: Generate coverage summary
run: |
echo "## Coverage Report" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
cat src/coverage.cobertura.xml >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY

0 comments on commit 9cf0580

Please sign in to comment.