run fmt & vet before test
Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
2
Makefile
2
Makefile
@@ -83,7 +83,7 @@ docker-build: all
|
|||||||
docker build . -t ${IMG}
|
docker build . -t ${IMG}
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
test:
|
test: fmt vet
|
||||||
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT=1m; go test ./pkg/... ./cmd/... -coverprofile cover.out
|
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT=1m; go test ./pkg/... ./cmd/... -coverprofile cover.out
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|||||||
Reference in New Issue
Block a user