From 6593f4d2069790c73595f14b3312a8d83e61760e Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 6 Jan 2025 18:13:00 +0700 Subject: all: run task "test" after "lint" and "build" Task for "lint" and "build" is much more faster than "test". So if we lint or build failed, we did not waste too much times waiting for all tests to pass. While at it, remove linter "revive" we will use the standard linters from Go tools itself. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 45da93b..1d2e0ac 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,12 @@ VERSION:=$(shell git describe --tags) LDFLAGS:=-ldflags "-s -w -X 'git.sr.ht/~shulhan/ciigo.Version=$(VERSION)'" DIR_BUILD:=_bin -all: test lint build +all: lint build test lint: -fieldalignment ./... -shadow ./... - -revive ./... + go vet ./... test: find ./testdata -name "*.html" -delete -- cgit v1.3