Update beckn_ci.yml
changes made
This commit is contained in:
6
.github/workflows/beckn_ci.yml
vendored
6
.github/workflows/beckn_ci.yml
vendored
@@ -69,9 +69,9 @@ jobs:
|
|||||||
coverage=$(go tool cover -func=$coverage_file | grep total | awk '{print $3}' | sed 's/%//')
|
coverage=$(go tool cover -func=$coverage_file | grep total | awk '{print $3}' | sed 's/%//')
|
||||||
echo "Coverage for $coverage_file: $coverage%"
|
echo "Coverage for $coverage_file: $coverage%"
|
||||||
|
|
||||||
# If coverage is below threshold (90%), fail the job
|
# If coverage is below threshold (80%), fail the job
|
||||||
if (( $(echo "$coverage < 90" | bc -l) )); then
|
if (( $(echo "$coverage < 80" | bc -l) )); then
|
||||||
echo "Coverage for $coverage_file is below 90%. Failing the job."
|
echo "Coverage for $coverage_file is below 80%. Failing the job."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user