From 3dd50dfe288df5f241e85e7774f6719a262af565 Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Mon, 17 Feb 2020 21:59:08 -0800 Subject: [PATCH] default task for Makefile Signed-off-by: Casey Lee --- Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index d0192e1..c8fd328 100644 --- a/Makefile +++ b/Makefile @@ -15,21 +15,14 @@ TAG_VERSION = v$(VERSION) ACT ?= go run -mod=vendor main.go export GITHUB_TOKEN = $(shell cat ~/.config/github/token) -default: check - -test: - go test -cover -short ./... - check: - $(ACT) -orj ci + @golangci-lint run + @go test -cover ./... build: check $(eval export SNAPSHOT_VERSION=$(VERSION)) $(ACT) -ra build -release: - $(ACT) -ra local-release - install: build @cp dist/$(shell go env GOOS)_$(shell go env GOARCH)/act /usr/local/bin/act @chmod 755 /usr/local/bin/act