From c28879b9d5f2f1bea96d5aaf64f1af1fc185e7b0 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Wed, 17 Aug 2022 14:07:28 +0700 Subject: all: add task to run test on make --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.3