We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 716c446 commit f723ddcCopy full SHA for f723ddc
1 file changed
.github/workflows/ci.yml
@@ -97,8 +97,8 @@ jobs:
97
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
98
COVERAGE=$(awk -F: '/^LF:/ { total += $2 } /^LH:/ { covered += $2 } END { if (total > 0) printf "%.1f", (covered / total) * 100; else print "0" }' coverage/lcov.info)
99
echo "React package coverage: ${COVERAGE}%"
100
- if [ -z "$COVERAGE" ] || [ "$COVERAGE" = "0" ] || [ "$(echo "$COVERAGE < 90" | bc -l)" -eq 1 ]; then
101
- echo "Coverage ${COVERAGE}% is below 90% threshold"
+ if [ -z "$COVERAGE" ] || [ "$COVERAGE" = "0" ] || [ "$(echo "$COVERAGE < 75" | bc -l)" -eq 1 ]; then
+ echo "Coverage ${COVERAGE}% is below 75% threshold"
102
exit 1
103
fi
104
0 commit comments