# The checks that CI runs. STATICCHECK ?= staticcheck # CI's workflow pod has no C compiler, so it sets RACE empty. RACE ?= -race # check-coverage runs the tests and fails when coverage is under 100%. .PHONY: test test: test -z "$$(gofmt -l .)" || { gofmt -l .; exit 1; } go mod tidy -diff go vet ./... $(STATICCHECK) ./... RACE="$(RACE)" ./check-coverage