diff --git a/Makefile b/Makefile index 9b9aa3cd..2030c6be 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ run-golangci-lint: FORCE prepare-static-check @printf "\e[1;36m>> golangci-lint\e[0m\n" @golangci-lint run -build/cover.out: FORCE install-ginkgo generate install-controller-gen install-setup-envtest | build +build/cover.out: FORCE install-ginkgo generate install-setup-envtest | build @printf "\e[1;36m>> Running tests\e[0m\n" KUBEBUILDER_ASSETS="$(shell setup-envtest use 1.29.1 --bin-dir $(TESTBIN) -p path)" ginkgo run --randomize-all $(GO_BUILDFLAGS) -ldflags '-s -w -X github.com/sapcc/go-api-declarations/bininfo.binName=absent-metrics-operator -X github.com/sapcc/go-api-declarations/bininfo.version=$(BININFO_VERSION) -X github.com/sapcc/go-api-declarations/bininfo.commit=$(BININFO_COMMIT_HASH) -X github.com/sapcc/go-api-declarations/bininfo.buildDate=$(BININFO_BUILD_DATE) $(GO_LDFLAGS)' -p 1 -coverprofile=$@ -covermode=count -coverpkg=$(subst $(space),$(comma),$(GO_COVERPKGS)) $(GO_TESTPKGS)