From d79e3d22e403c20b899257bfe51a4e6710ae5a63 Mon Sep 17 00:00:00 2001 From: Yogya Tulip Gamage <47789154+yogyagamage@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:58:20 -0400 Subject: [PATCH] Add a small gap between the threshold and the coverage --- .github/workflows/test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f71e4875c6..2dfcedbe83 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,17 +64,17 @@ jobs: threshold5=81.89 threshold6=52.88 - if (( $(echo "$COVERAGE1 > $threshold1" | bc -l) )); then + if (( $(echo "$COVERAGE1 - $threshold1 <= 0.1" | bc -l) )); then echo "New coverage for the module core - $COVERAGE1%. Coverage is improved!" - elif (( $(echo "$COVERAGE2 > $threshold2" | bc -l) )); then + elif (( $(echo "$COVERAGE2 - $threshold2 <= 0.1" | bc -l) )); then echo "New coverage for the module reader-gtfs - $COVERAGE2%. Coverage is improved!" - elif (( $(echo "$COVERAGE3 > $threshold3" | bc -l) )); then + elif (( $(echo "$COVERAGE3 - $threshold3 <= 0.1" | bc -l) )); then echo "New coverage for module web - $COVERAGE3%. Coverage is improved!" - elif (( $(echo "$COVERAGE4 > $threshold4" | bc -l) )); then + elif (( $(echo "$COVERAGE4 - $threshold4 <= 0.1" | bc -l) )); then echo "New coverage for module web-api - $COVERAGE4%. Coverage is improved!" - elif (( $(echo "$COVERAGE5 > $threshold5" | bc -l) )); then + elif (( $(echo "$COVERAGE5 - $threshold5 <= 0.1" | bc -l) )); then echo "New coverage for module navigation - $COVERAGE5%. Coverage is improved!" - elif (( $(echo "$COVERAGE6 > $threshold6" | bc -l) )); then + elif (( $(echo "$COVERAGE6 - $threshold6 <= 0.1" | bc -l) )); then echo "New coverage for module client-hc - $COVERAGE6%. Coverage is improved!" else echo "Coverage is not improved."