14 lines
223 B
Makefile
14 lines
223 B
Makefile
|
.DEFAULT_GOAL := all
|
||
|
|
||
|
.PHONY: all
|
||
|
all: test lint
|
||
|
|
||
|
# the TEST_FLAGS env var can be set to eg run only specific tests
|
||
|
.PHONY: test
|
||
|
test:
|
||
|
go test -v -count=1 -race -cover "$$TEST_FLAGS"
|
||
|
|
||
|
.PHONY: lint
|
||
|
lint:
|
||
|
golangci-lint run
|