Skip to content

Commit a36486c

Browse files
committed
Add test run in Dockerfile
Signed-off-by: Markus Blaschke <[email protected]>
1 parent b338eb7 commit a36486c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN go mod download
99

1010
# Compile
1111
COPY ./ /go/src/github.com/webdevops/kube-pool-manager
12+
RUN make test
1213
RUN make lint
1314
RUN make build
1415
RUN ./kube-pool-manager --help

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ vendor:
2626
image: build
2727
docker build -t $(NAME):$(TAG) .
2828

29+
test:
30+
go test ./...
31+
2932
.PHONY: lint
3033
lint: $(GOLANGCI_LINT_BIN)
3134
# megacheck fails to respect build flags, causing compilation failure during linting.

0 commit comments

Comments
 (0)