From 01c7931a6b523c28d856ba05d2d6cd6ac7cc01b2 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 15 Feb 2026 09:25:28 -0800 Subject: Add local git hooks to run 'make check' before push --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7709cd6..26fbcfa 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ VERSION=0.3 BUILD=`git rev-parse HEAD` LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}" -.PHONY: default all clean ui build install test test-race test-frontend test-e2e ui-check lint check ci run dev docs +.PHONY: default all clean ui build install test test-race test-frontend test-e2e ui-check lint check ci run dev docs install-hooks default: build @@ -42,8 +42,8 @@ test-frontend: cd frontend && ${NPM} run lint cd frontend && ${NPM} test -- --run -test-e2e: build - ./scripts/run_e2e_safe.sh +# test-e2e: build +# ./scripts/run_e2e_safe.sh ui-check: ui git diff --exit-code web/dist/v2/ @@ -54,7 +54,7 @@ lint: check: lint test -ci: lint test-race test-frontend ui-check test-e2e +ci: lint test-race test-frontend ui-check run: build ./${BINARY} @@ -62,6 +62,10 @@ run: build dev: build ./${BINARY} -d +install-hooks: + chmod +x scripts/install-hooks.sh + ./scripts/install-hooks.sh + docs: readme.html readme.html: README.md -- cgit v1.2.3