Add Makefile and remove ad-hoc lint script
This commit is contained in:
19
Makefile
Normal file
19
Makefile
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
SHELL := /usr/local/bin/oksh
|
||||||
|
export PATH := $(PATH)
|
||||||
|
|
||||||
|
.PHONY: all fmt lint
|
||||||
|
|
||||||
|
all: fmt lint test
|
||||||
|
|
||||||
|
# Test
|
||||||
|
test:
|
||||||
|
go test -v ./...
|
||||||
|
|
||||||
|
# Format code
|
||||||
|
fmt:
|
||||||
|
gofumpt -l -w .
|
||||||
|
gci write .
|
||||||
|
|
||||||
|
# Run linter
|
||||||
|
lint: fmt
|
||||||
|
golangci-lint run
|
||||||
Reference in New Issue
Block a user