aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2025-03-07 22:37:19 -0500
committerPaul Duncan <pabs@pablotron.org>2025-03-07 22:37:19 -0500
commit6a6a742ee2e2fe0570a6e21c51e1821db4910dd4 (patch)
tree7e9b2d4308ef9a918c5f0b791bfbdd78ee69cfdc
parent773c6a03738cd80ff76fe1c8ea82c0291e52d16d (diff)
downloadjim-bot-6a6a742ee2e2fe0570a6e21c51e1821db4910dd4.tar.xz
jim-bot-6a6a742ee2e2fe0570a6e21c51e1821db4910dd4.zip
Makefile: add test and check targets
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
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