From 1c3b566d43f2d2f7c72d3451d5e8635bfc764032 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Thu, 10 Aug 2023 11:05:58 -0600 Subject: [PATCH] Test targets depend on config Signed-off-by: Jonathon Anderson --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 09407ec5..47a91a37 100644 --- a/Makefile +++ b/Makefile @@ -46,15 +46,15 @@ lint: setup_tools $(GOLANGCI_LINT) run --build-tags "$(WW_GO_BUILD_TAGS)" --skip-dirs internal/pkg/staticfiles ./... .PHONY: vet -vet: +vet: config go vet ./... .PHONY: test -test: +test: config go test ./... .PHONY: test-cover -test-cover: +test-cover: config rm -rf coverage mkdir coverage go list -f '{{if gt (len .TestGoFiles) 0}}"go test -covermode count -coverprofile {{.Name}}.coverprofile -coverpkg ./... {{.ImportPath}}"{{end}}' ./... | xargs -I {} bash -c {}