We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d87f9 commit a00eb06Copy full SHA for a00eb06
Makefile
@@ -49,9 +49,15 @@ lint: ## golangci-lint
49
vuln: ## govulncheck
50
go tool govulncheck ./...
51
52
+ifeq ($(strip $(CGO_ENABLED)),0)
53
+RACE_OPT =
54
+else
55
+RACE_OPT = -race
56
+endif
57
+
58
.PHONY: test
59
test: ## go test
- go test -race -covermode=atomic -coverprofile=coverage.out -coverpkg=./... ./...
60
+ go test $(RACE_OPT) -covermode=atomic -coverprofile=coverage.out -coverpkg=./... ./...
61
go tool cover -html=coverage.out -o coverage.html
62
63
.PHONY: diff
0 commit comments