You've already forked dcmerge
fix(ci): read coverage from previous step
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 4s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 30s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 24s
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 4s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 30s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 24s
This commit is contained in:
@@ -48,7 +48,7 @@ jobs:
|
||||
echo "Total coverage: ${coverage}%"
|
||||
- name: Fail if coverage is to low
|
||||
run: |
|
||||
total_coverage={{ steps.coverage.outputs.total_coverage }}
|
||||
total_coverage=${{ steps.coverage.outputs.total_coverage }}
|
||||
|
||||
if (( ${total_coverage%.*} < 50 )); then
|
||||
echo "ERROR: Coverage (${total_coverage}%) is below the threshold (50%)." 1>&2
|
||||
|
||||
Reference in New Issue
Block a user