mirror of
https://github.com/Jguer/yay
synced 2024-10-05 23:59:13 +00:00
chore(makefile): add atomic cover back to go test
This commit is contained in:
parent
95bc333a92
commit
49ef780602
6
Makefile
6
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
|
||||
|
|
Loading…
Reference in a new issue