From a55fadd53a4918cd067349b270c2542019ceae36 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sun, 5 Feb 2023 21:06:06 +0100 Subject: [PATCH] make docker build fail on backend test failure Previously, the commands were combined incorrectly, and the failure of backend tests was ignored. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6d445fc0..79a52ded 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,7 +70,7 @@ RUN \ cd app && \ if [ -z "$SKIP_BACKEND_TEST" ] ; then \ CGO_ENABLED=1 go test -race -p 1 -timeout="${BACKEND_TEST_TIMEOUT:-300s}" -covermode=atomic -coverprofile=/profile.cov_tmp ./... && \ - cat /profile.cov_tmp | grep -v "_mock.go" > /profile.cov ; \ + cat /profile.cov_tmp | grep -v "_mock.go" > /profile.cov && \ golangci-lint run --config ../.golangci.yml ./... ; \ else \ echo "skip backend tests and linter" \