fix(ci): read coverage from previous step
Some checks failed
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) Failing after 5s
Lint Markdown files / Run markdown linter (push) Successful in 4s
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) Has been cancelled

This commit is contained in:
2025-10-28 19:20:06 +01:00
parent 0ec48df63e
commit b33fc98e31

View File

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