This commit is contained in:
Nuno Cruces
2023-01-26 10:39:24 +00:00
parent 44854a7495
commit 591828031e
2 changed files with 2 additions and 2 deletions

4
.github/coverage.sh vendored
View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -eo pipefail
set -euo pipefail
SCRIPT_DIR="$(dirname -- "$(readlink -f "${BASH_SOURCE[0]}")")"
@@ -8,7 +8,7 @@ go tool cover -html="$SCRIPT_DIR/coverage.out" -o "$SCRIPT_DIR/coverage.html"
COVERAGE=$(go tool cover -func="$SCRIPT_DIR/coverage.out" | grep total: | grep -Eo '[0-9]+\.[0-9]+')
echo
echo "Full coverage: $COVERAGE% of statements"
echo "coverage: $COVERAGE% of statements"
COLOR=orange
if (( $(echo "$COVERAGE <= 50" | bc -l) )) ; then