浏览代码

Merge pull request #707 from ulyssessouza/add-precommit-target

Add pre-commit target to Makefile
Guillaume Tardif 5 年之前
父节点
当前提交
b666a21fe2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Makefile

+ 2 - 0
Makefile

@@ -96,6 +96,8 @@ validate-go-mod: ## Validate go.mod and go.sum are up-to-date
 
 validate: validate-go-mod validate-headers ## Validate sources
 
+pre-commit: all lint validate test e2e-local
+
 help: ## Show help
 	@echo Please specify a build target. The choices are:
 	@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'