Makefile: run 'go test' in 'test' target
So tests are executed when we build in CI.
@@ -38,7 +38,7 @@ build-slim:
github.com/kinvolk/lokoctl
.PHONY: test
-test: check-go-format
+test: check-go-format run-unit-tests
GOFORMAT_FILES := $(shell find . -name '*.go')
@@ -47,6 +47,10 @@ GOFORMAT_FILES := $(shell find . -name '*.go')
check-go-format:
@./scripts/go-lint ${GOFORMAT_FILES}
+.PHONY: run-unit-tests
+run-unit-tests:
+ go test ./...
+
.PHONY: format-go-code
## Formats any go file that differs from gofmt's style
format-go-code:
