You've already forked dcmerge
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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user