You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@packages=$$($(GO) list ./...)||exit$$?;if [ -n"$$packages" ];then$(GO) tool $(TOOLS_MOD) golangci-lint run;elseecho"No Go packages to lint";fi
## fmt: format go files using golangci-lint
fmt:
$(GO) tool $(TOOLS_MOD) golangci-lint fmt
## test: run tests
test:
@packages=$$($(GO) list ./...)||exit$$?;if [ -n"$$packages" ];then$(GO)test -v -covermode=atomic -coverprofile=coverage.txt ./...;elseecho"No Go packages to test";fi
## coverage: view test coverage in browser
coverage: test
@if [ -f coverage.txt ];then$(GO) tool cover -html=coverage.txt;elseecho"No Go coverage to display";fi