Jelajahi Sumber

chore(makefile): add atomic cover back to go test

jguer 3 tahun lalu
induk
melakukan
49ef780602
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      Makefile

+ 3 - 3
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