Test targets depend on config

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2023-08-10 11:05:58 -06:00
parent 081ead8c9b
commit 1c3b566d43

View File

@@ -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 {}