aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4869220..edbed29 100644
--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,13 @@ COVER_HTML=cover.html
.PHONY: all test
-all: test
+all: test lint
test:
CGO_ENABLED=1 go test -race -coverprofile=$(COVER_OUT) ./...
go tool cover -html=$(COVER_OUT) -o $(COVER_HTML)
go tool cover -func=$(COVER_OUT) | tail -n1
+
+lint:
+ golangci-lint run ./...
fieldalignment ./...