Skip to content

Commit

Permalink
separate coverage zip step
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jun 7, 2024
1 parent ed3084b commit b5d3625
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ jobs:
mkdir html
cov=$(~/.local/bin/gcovr -r . --html-details html/index.html --json-summary | jq .line_percent)
echo "Coverage: ${cov}% (min $min_cov%)"
zip -r coverage.zip html
exit $(echo "$cov < $min_cov" | bc -l)
- name: coverage zip
run: |
zip -r coverage.zip html
- uses: actions/upload-artifact@v4
with:
name: coverage
Expand Down

0 comments on commit b5d3625

Please sign in to comment.