aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1ee608c..0875d72 100644
--- a/Makefile
+++ b/Makefile
@@ -2,15 +2,23 @@
## SPDX-License-Identifier: GPL-3.0-or-later
.PHONY: all
-all: lint
+all: lint test
go run ./internal/cmd/trunks build
- CGO_ENABLED=1 go test -v -race ./...
- -golangci-lint run ./...
.PHONY: lint
-lint:
+lint: lint-www
+ -revive ./...
+ -fieldalignment ./...
+ -shadow ./...
+
+.PHONY: lint-www
+lint-www:
cd _www && npx eslint --fix .
+.PHONY: test
+test:
+ CGO_ENABLED=1 go test -v -race ./...
+
.PHONY: dev
dev:
go run ./internal/cmd/trunks