From d5434d4169d56f1a92529798eaf96479b03f99a1 Mon Sep 17 00:00:00 2001 From: Deluan Date: Wed, 24 Mar 2021 12:21:20 -0400 Subject: [PATCH] Add `'lint` to pre-push git hook --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 602bc9d7..3929e2b3 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,10 @@ lint: go run github.com/golangci/golangci-lint/cmd/golangci-lint run -v .PHONY: lint +lintall: check_node_dev_env lint + @(cd ./ui && npm run check-formatting && npm run lint) +.PHONY: lintall + update-snapshots: check_go_env UPDATE_SNAPSHOTS=true go run github.com/onsi/ginkgo/ginkgo ./server/subsonic/... .PHONY: update-snapshots @@ -111,7 +115,7 @@ buildall: check_env go build -ldflags="-X github.com/navidrome/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/navidrome/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT" -tags=netgo .PHONY: buildall -pre-push: lint test +pre-push: lintall testall .PHONY: pre-push release: