run fmt & vet before test

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-08-08 12:06:51 +08:00
parent 998dce21d2
commit 9171101989

View File

@@ -83,7 +83,7 @@ docker-build: all
docker build . -t ${IMG}
# Run tests
test:
test: fmt vet
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT=1m; go test ./pkg/... ./cmd/... -coverprofile cover.out
.PHONY: clean