Skip to content

Commit

Permalink
Don't fail GHA due to incomplete coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaponte committed Nov 3, 2024
1 parent 1b8eafa commit bb2acb2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ jobs:
run: |
echo "Showing only files with coverage < 100%"
head -2 coverage_report
FAIL=0
incomplete_coverage=$(head -n -2 coverage_report | tail -n +3 | grep -v "100%")
while read line; do
FAIL=1
printf '\033[0;31m%s\033[0m\n' "$line" # red color ... reset color
done <<<${incomplete_coverage}
tail -2 coverage_report
exit $FAIL

0 comments on commit bb2acb2

Please # to comment.