# The checks that CI runs, plus the race detector. `make test` needs the Go # toolchain, staticcheck, and a C compiler, because the race detector needs # cgo. # Set STATICCHECK to run another staticcheck, such as a `go run` of a pinned one. STATICCHECK ?= staticcheck .PHONY: test test: test -z "$$(gofmt -l .)" || { gofmt -l .; exit 1; } go mod tidy -diff go vet ./... $(STATICCHECK) ./... go test -race -covermode=atomic -coverprofile=coverage.out ./...