ci: add test stage to dockerfile
This commit is contained in:
parent
5d4e52c1de
commit
2b89b90fc5
|
@ -9,6 +9,8 @@ RUN go mod download && go mod verify
|
|||
COPY . .
|
||||
RUN go build -v -o log101-dot-dev-services
|
||||
|
||||
RUN go test -v ./...
|
||||
|
||||
FROM alpine
|
||||
WORKDIR /root/app
|
||||
COPY --from=builder /usr/src/app .
|
||||
|
|
Loading…
Reference in New Issue
Block a user