mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-06 20:10:11 +02:00
CI: Merge workflows in build.yml
This commit is contained in:
+5
-2
@@ -12,9 +12,12 @@ COPY cmd/ ./cmd/
|
||||
COPY internal/ ./internal/
|
||||
|
||||
FROM --platform=$BUILDPLATFORM base AS test
|
||||
# Note on the go race detector:
|
||||
# - we use golang:1.15-alpine and not golang:1.15-alpine3.12 to have the race detector fixed
|
||||
# - we set CGO_ENABLED=1 to have it enabled
|
||||
# - we install g++ to support the race detector
|
||||
ENV CGO_ENABLED=1
|
||||
RUN apk --update add g++
|
||||
RUN go test -race ./...
|
||||
RUN apk --update --no-cache add g++
|
||||
|
||||
FROM --platform=$BUILDPLATFORM base AS lint
|
||||
ARG GOLANGCI_LINT_VERSION=v1.34.1
|
||||
|
||||
Reference in New Issue
Block a user