diff --git a/.gitea/workflows/golang-tests.yaml b/.gitea/workflows/golang-tests.yaml index 9f31155..f3b6521 100644 --- a/.gitea/workflows/golang-tests.yaml +++ b/.gitea/workflows/golang-tests.yaml @@ -48,6 +48,8 @@ jobs: echo "Total coverage: ${coverage}%" - name: Fail if coverage is to low run: | + total_coverage={{ steps.coverage.outputs.total_coverage }} + if (( ${total_coverage%.*} < 50 )); then echo "ERROR: Coverage (${total_coverage}%) is below the threshold (50%)." 1>&2 exit 1