From 6a6a742ee2e2fe0570a6e21c51e1821db4910dd4 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 7 Mar 2025 22:37:19 -0500 Subject: Makefile: add test and check targets --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index af99727..e0b94ff 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,15 @@ -@PHONY=all app +.PHONY=all test clean check all: go build -trimpath -ldflags='-s -w' +test: + go test ./... + +check: + go vet ./... + staticcheck ./... + clean: go clean -- cgit v1.2.3