Maintenance: set entrypoint for test Docker stage

This commit is contained in:
Quentin McGaw (desktop)
2021-06-15 12:25:57 +00:00
parent 582c6d1c43
commit 5ea31b0b64
2 changed files with 2 additions and 7 deletions

View File

@@ -34,13 +34,7 @@ jobs:
touch coverage.txt
docker run --rm \
-v "$(pwd)/coverage.txt:/tmp/gobuild/coverage.txt" \
test-container \
go test \
-race \
-coverpkg=./... \
-coverprofile=coverage.txt \
-covermode=atomic \
./...
test-container
- name: Code security analysis
uses: snyk/actions/golang@master

View File

@@ -17,6 +17,7 @@ FROM --platform=$BUILDPLATFORM base AS test
# - we install g++ to support the race detector
ENV CGO_ENABLED=1
RUN apk --update --no-cache add g++
ENTRYPOINT go test -race -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic ./...
FROM --platform=$BUILDPLATFORM base AS lint
ARG GOLANGCI_LINT_VERSION=v1.40.1