From 49ef7806028234924b6be733831ab54148e76212 Mon Sep 17 00:00:00 2001 From: jguer Date: Wed, 11 Aug 2021 22:14:11 +0200 Subject: [PATCH] chore(makefile): add atomic cover back to go test --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 90b7633a..f83ef6ab 100644 --- a/Makefile +++ b/Makefile @@ -49,9 +49,7 @@ test_lint: test lint .PHONY: test test: - $(GO) vet $(FLAGS) ./... - @test -z "$$(gofmt -l $(SOURCES))" || (echo "Files need to be linted. Use make fmt" && false) - $(GO) test $(FLAGS) ./... + $(GO) test -race -covermode=atomic $(FLAGS) ./... .PHONY: build build: $(BIN) @@ -79,6 +77,8 @@ docker-build: .PHONY: lint lint: + $(GO) vet $(FLAGS) ./... + @test -z "$$(gofmt -l $(SOURCES))" || (echo "Files need to be linted. Use make fmt" && false) golangci-lint run ./... .PHONY: fmt