From d4b9d37eced09bdab3861a0d0fb64490d13969db Mon Sep 17 00:00:00 2001 From: user Date: Fri, 20 Feb 2026 02:53:14 -0800 Subject: [PATCH] add make check target --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 223ce8d..2315f89 100644 --- a/Makefile +++ b/Makefile @@ -67,3 +67,12 @@ local: install: vaultik cp ./vaultik $(HOME)/bin/ + +# Run all checks (formatting, linting, tests) without modifying files +check: + @echo "==> Checking formatting..." + @test -z "$$(gofmt -l .)" || (echo "Files not formatted:" && gofmt -l . && exit 1) + @echo "==> Running linter..." + golangci-lint run ./... + @echo "==> Running tests..." + go test -race -timeout 30s ./...