aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-01-06 18:13:00 +0700
committerShulhan <ms@kilabit.info>2025-01-07 00:13:55 +0700
commit6593f4d2069790c73595f14b3312a8d83e61760e (patch)
tree6020cffbe816201e27024262698d3525b5da1abd
parent4a4ed2dce4ea4d9448d5aa03ea4040af202d2520 (diff)
downloadciigo-6593f4d2069790c73595f14b3312a8d83e61760e.tar.xz
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.
-rw-r--r--Makefile4
1 files 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