Skip to content

Commit 9dec23a

Browse files
committed
chore: Fix the coverage check github action.
1 parent adaa7ee commit 9dec23a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
run: |
6060
echo "BASE BRANCH CODE COVERAGE is ${{ env.CUR_COVER }}%"
6161
echo "PULL REQUEST CODE COVERAGE is ${{ env.PR_COVER }}%"
62-
if [ "${{ env.PR_COVER }}" -lt "$(( env.CUR_COVER - 2 ))" ]; then
62+
if (( PR_COVER - 2 > CUR_COVER )); then
63+
echo "Coverage check failed: PR reduces code coverage by more than 2%."
6364
exit 1;
6465
fi

0 commit comments

Comments
 (0)