aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-17 14:07:28 +0700
committerShulhan <ms@kilabit.info>2022-08-17 14:07:28 +0700
commitc28879b9d5f2f1bea96d5aaf64f1af1fc185e7b0 (patch)
tree00e34333ddf93c7ed9fb647a43d43a09172de37f /Makefile
parente7476eed707355bbd0aa4e8fc1b3a025081068a0 (diff)
downloadhaminer-c28879b9d5f2f1bea96d5aaf64f1af1fc185e7b0.tar.xz
all: add task to run test on make
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3dad251..2451468 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,11 @@ all: install
build:
go build -v ./cmd/haminer
+test:
+ CGO_ENABLED=1 go test -race ./...
+
lint:
-golangci-lint run ./...
-install: build lint
+install: build test lint
go install -v ./cmd/haminer