mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
Run tests inside a container
This commit is contained in:
parent
32da9e65e8
commit
cdff00d571
@ -10,7 +10,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
|||||||
git \
|
git \
|
||||||
protobuf-compiler \
|
protobuf-compiler \
|
||||||
libprotobuf-dev
|
libprotobuf-dev
|
||||||
RUN go get github.com/golang/protobuf/protoc-gen-go
|
RUN go get github.com/golang/protobuf/protoc-gen-go && \
|
||||||
|
go get gotest.tools/gotestsum
|
||||||
WORKDIR ${PWD}
|
WORKDIR ${PWD}
|
||||||
ADD go.* ${PWD}
|
ADD go.* ${PWD}
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
@ -25,6 +26,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
|||||||
GOARCH=${TARGET_ARCH} \
|
GOARCH=${TARGET_ARCH} \
|
||||||
make bins
|
make bins
|
||||||
|
|
||||||
|
FROM make-protos as make-test
|
||||||
|
RUN make test
|
||||||
|
|
||||||
FROM make-protos AS make-xbins
|
FROM make-protos AS make-xbins
|
||||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||||
make xbins
|
make xbins
|
||||||
|
Loading…
x
Reference in New Issue
Block a user