chore: add `-race` flag for tests

This commit is contained in:
Matej Vasek 2020-07-30 16:01:25 +02:00 committed by GitHub
parent 15f1e8be1e
commit 382fcf8d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ $(WINDOWS):
env GOOS=windows GOARCH=amd64 go build -o $(WINDOWS) -ldflags "-X main.date=$(DATE) -X main.vers=$(VERS) -X main.hash=$(HASH)" ./cmd/$(BIN) env GOOS=windows GOARCH=amd64 go build -o $(WINDOWS) -ldflags "-X main.date=$(DATE) -X main.vers=$(VERS) -X main.hash=$(HASH)" ./cmd/$(BIN)
test: test:
go test -cover -coverprofile=coverage.out ./... go test -race -cover -coverprofile=coverage.out ./...
image: Dockerfile image: Dockerfile
docker build -t $(REPO):latest \ docker build -t $(REPO):latest \