Missed a line in CI script

This commit is contained in:
Jamie Curnow 2023-07-27 14:31:40 +10:00
parent 43d989474e
commit 4ec1b4ed5a
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

View File

@ -43,7 +43,7 @@ if [ "${1:-}" = "--inside-docker" ]; then
echo -e "${BLUE} ${CYAN}Testing backend code${RESET}"
cd /app/backend
[ -z "$(go tool fix -diff ./internal)" ]
go test -json -cover -coverprofile="$DIR/../../coverage.out" ./internal/... | tparse
go test -json -cover -coverprofile="/tmp/coverage.out" ./internal/... | tparse
mkdir "$DIR/../../backend-coverage"
go tool cover -html="/tmp/coverage.out" -o "$DIR/../../backend-coverage/index.html"
rm -f "/tmp/coverage.out"