summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3cfbd13..25cbaba 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,18 @@
.PHONY: all test build install serve-doc
-all: test build
+all: test lint build
test:
CGO_ENABLED=1 go test -race -failfast -coverprofile=cover.out ./...
go tool cover -html=cover.out -o cover.html
+.PHONY: lint
+lint:
+ -revive ./...
+ -fieldalignment ./...
+ -shadow ./...
+
build:
mkdir -p _sys/usr/bin/
go build -o _sys/usr/bin/ ./cmd/...