Skip to content

Commit f723ddc

Browse files
drop coverage
1 parent 716c446 commit f723ddc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ jobs:
9797
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
9898
COVERAGE=$(awk -F: '/^LF:/ { total += $2 } /^LH:/ { covered += $2 } END { if (total > 0) printf "%.1f", (covered / total) * 100; else print "0" }' coverage/lcov.info)
9999
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"
100+
if [ -z "$COVERAGE" ] || [ "$COVERAGE" = "0" ] || [ "$(echo "$COVERAGE < 75" | bc -l)" -eq 1 ]; then
101+
echo "Coverage ${COVERAGE}% is below 75% threshold"
102102
exit 1
103103
fi
104104

0 commit comments

Comments
 (0)