Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@ lint: ## golangci-lint
vuln: ## govulncheck
go tool govulncheck ./...

ifeq ($(strip $(CGO_ENABLED)),0)
RACE_OPT =
else
RACE_OPT = -race
endif

.PHONY: test
test: ## go test
go test -race -covermode=atomic -coverprofile=coverage.out -coverpkg=./... ./...
go test $(RACE_OPT) -covermode=atomic -coverprofile=coverage.out -coverpkg=./... ./...
go tool cover -html=coverage.out -o coverage.html

.PHONY: diff
Expand Down