Add make check target and CI workflow #42
9
Makefile
9
Makefile
@ -67,3 +67,12 @@ local:
|
|||||||
|
|
||||||
install: vaultik
|
install: vaultik
|
||||||
cp ./vaultik $(HOME)/bin/
|
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 ./...
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user