Skip to content

Commit a625306

Browse files
authored
feat: introduce precommit target (#309)
1 parent 28304aa commit a625306

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ SHELL := /bin/bash
55
all: ## build pipeline
66
all: mod inst gen build spell lint test
77

8+
.PHONY: precommit
9+
precommit: ## validate the branch before commit
10+
precommit: all vuln
11+
812
.PHONY: ci
913
ci: ## CI build pipeline
10-
ci: all vuln diff
14+
ci: precommit diff
1115

1216
.PHONY: help
1317
help:
@@ -39,7 +43,6 @@ gen: ## go generate
3943

4044
.PHONY: build
4145
build: ## goreleaser build
42-
build:
4346
$(call print-target)
4447
goreleaser build --clean --single-target --snapshot
4548

0 commit comments

Comments
 (0)