Skip to content

Commit

Permalink
fix formate
Browse files Browse the repository at this point in the history
  • Loading branch information
yzlucas committed Sep 18, 2024
1 parent 4d1de06 commit d9a51b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ jobs:
# Ensure coverage meets the required threshold
- name: Check code coverage
run: |
if grep -q '"statements":{.*"pct": \([8-9][0-9]\|100\)' coverage/wfprev/coverage-summary.json; then
echo "Test passed";
statements_pct=$(jq '.total.statements.pct' coverage/wfprev/coverage-summary.json)
if (( $(echo "$statements_pct >= 80" | bc -l) )); then
echo "Test passed. Code coverage for statements is $statements_pct%";
else
echo "Code coverage is less than 80%! Exiting...";
echo "Code coverage for statements is less than 80%! Exiting... ($statements_pct%)";
exit 1;
fi
working-directory: client/wfprev-war/src/main/angular

0 comments on commit d9a51b0

Please sign in to comment.