fix(ci): adapt coverage check
All checks were successful
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 9s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 6s
Lint Markdown files / Run markdown linter (push) Successful in 3s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 29s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 23s

This commit is contained in:
2025-10-28 19:17:04 +01:00
parent a74c429696
commit 0ec48df63e

View File

@@ -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