18 lines
332 B
Makefile
18 lines
332 B
Makefile
default: test lint
|
|
|
|
fmt:
|
|
@echo "==> Fixing source code with gofmt..."
|
|
gofmt -s -w ./
|
|
|
|
lint:
|
|
@echo "==> Checking source code against linters..."
|
|
@golangci-lint run ./...
|
|
|
|
test:
|
|
go test -timeout=30s -parallel=4 ./...
|
|
|
|
tools:
|
|
GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
|
|
|
.PHONY: lint test tools
|