File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,3 +85,15 @@ repos:
8585 # hooks:
8686 # - id: terraform-docs-go
8787 # args: [--output-file, README.md]
88+
89+ # --- Pre-Push: Full Check Gate ---
90+ # Runs make check before every push. Skip with: git push --no-verify
91+ - repo : local
92+ hooks :
93+ - id : make-check
94+ name : make check
95+ entry : make check
96+ language : system
97+ always_run : true
98+ pass_filenames : false
99+ stages : [pre-push]
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Every DevRail-managed repo exposes these public targets:
5454| ` make docs ` | Generate documentation (terraform-docs, tool version report) |
5555| ` make changelog ` | Generate CHANGELOG.md from conventional commits (git-cliff) |
5656| ` make check ` | Run all of the above in sequence |
57- | ` make install-hooks ` | Install pre-commit hooks |
57+ | ` make install-hooks ` | Install pre-commit and pre-push hooks |
5858| ` make init ` | Scaffold config files for declared languages |
5959
6060### Naming Rules
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ install-hooks: ## Install pre-commit hooks
9191 fi
9292 @pre-commit install
9393 @pre-commit install --hook-type commit-msg
94- @echo " Pre-commit hooks installed successfully. Hooks will run on every commit."
94+ @pre-commit install --hook-type pre-push
95+ @echo " Pre-commit hooks installed successfully. Hooks will run on commit and push."
9596
9697lint : # # Run all linters
9798 $(DOCKER_RUN ) make _lint
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ The Makefile is the universal execution interface. Every target produces consist
3232| ` make scan ` | Run universal scanning (trivy, gitleaks) |
3333| ` make docs ` | Generate documentation |
3434| ` make check ` | Run all of the above; report composite summary |
35- | ` make install-hooks ` | Install pre-commit hooks |
35+ | ` make install-hooks ` | Install pre-commit and pre-push hooks |
3636
3737All targets except ` help ` and ` install-hooks ` delegate to the dev-toolchain Docker container (` ghcr.io/devrail-dev/dev-toolchain:v1 ` ).
3838
You can’t perform that action at this time.
0 commit comments