From 0ec48df63ef243696b05b53b9276bedde6f3a0a4 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 28 Oct 2025 19:17:04 +0100 Subject: [PATCH] fix(ci): adapt coverage check --- .gitea/workflows/golang-tests.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/golang-tests.yaml b/.gitea/workflows/golang-tests.yaml index 4e4ff1c..9f31155 100644 --- a/.gitea/workflows/golang-tests.yaml +++ b/.gitea/workflows/golang-tests.yaml @@ -48,6 +48,7 @@ jobs: echo "Total coverage: ${coverage}%" - name: Fail if coverage is to low run: | - if (( $(echo "${total_coverage} < 50" | bc -l) )); then - echo "ERROR: Coverage (${total_coverage}%) is below the threshold (50%)." + if (( ${total_coverage%.*} < 50 )); then + echo "ERROR: Coverage (${total_coverage}%) is below the threshold (50%)." 1>&2 + exit 1 fi