Skip to content

Commit

Permalink
Update test coverage threshold to 25%
Browse files Browse the repository at this point in the history
  • Loading branch information
117 committed Mar 26, 2024
1 parent b8054ba commit 23f4754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deno_test_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
COVERED_LINES=$(grep -o '^DA:[^,]*' lcov.info | grep -o '1' | wc -l | xargs)
COVERAGE_PERCENT=$((COVERED_LINES * 100 / TOTAL_LINES))
echo "Test coverage: $COVERAGE_PERCENT%"
if [ "$COVERAGE_PERCENT" -lt 50 ]; then
echo "test coverage is below 50%"
if [ "$COVERAGE_PERCENT" -lt 25 ]; then
echo "test coverage is below 25%"
exit 1
fi
shell: bash

0 comments on commit 23f4754

Please sign in to comment.