瀏覽代碼

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

jguer 3 年之前
父節點
當前提交
49ef780602
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Makefile

+ 3 - 3
Makefile

@@ -49,9 +49,7 @@ test_lint: test lint
 
 
 .PHONY: test
 .PHONY: test
 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
 .PHONY: build
 build: $(BIN)
 build: $(BIN)
@@ -79,6 +77,8 @@ docker-build:
 
 
 .PHONY: lint
 .PHONY: lint
 lint:
 lint:
+	$(GO) vet $(FLAGS) ./...
+	@test -z "$$(gofmt -l $(SOURCES))" || (echo "Files need to be linted. Use make fmt" && false)
 	golangci-lint run ./...
 	golangci-lint run ./...
 
 
 .PHONY: fmt
 .PHONY: fmt