Files
marunandGitHub 6df5c282ab ci: Add shellcheck step to lint job (#1061)
* `ci`: Add shellcheck step to lint job

* fixup: Exclude upstream files
2024-01-31 13:31:27 +00:00

17 lines
361 B
Bash
Executable File

#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
if [ ! -f "coverage.out" ]; then
echo "no coverage file"
exit 0
fi
totalCoverage=$(go tool cover -func=coverage.out | grep total | grep -Eo '[0-9]+\.[0-9]+')
echo "Current test coverage : $totalCoverage %"
echo "========================================"
go tool cover -func=coverage.out