mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
chore: split pre-pr quality gate (#3807)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## —— Pre Commit Checks ----------------------------------------------------------------------------
|
## —— Pre Commit Checks ----------------------------------------------------------------------------
|
||||||
|
|
||||||
.NOTPARALLEL: pre-commit dev-check
|
.NOTPARALLEL: pre-commit pre-pr dev-check
|
||||||
|
|
||||||
.PHONY: setup-hooks
|
.PHONY: setup-hooks
|
||||||
setup-hooks: ## Set up git hooks
|
setup-hooks: ## Set up git hooks
|
||||||
@@ -9,9 +9,13 @@ setup-hooks: ## Set up git hooks
|
|||||||
@echo "✅ Git hooks setup complete!"
|
@echo "✅ Git hooks setup complete!"
|
||||||
|
|
||||||
.PHONY: pre-commit
|
.PHONY: pre-commit
|
||||||
pre-commit: fmt-check unsafe-code-check architecture-migration-check logging-guardrails-check clippy-check test ## Run full pre-commit checks
|
pre-commit: fmt-check unsafe-code-check architecture-migration-check logging-guardrails-check quick-check ## Run fast pre-commit checks
|
||||||
@echo "✅ All pre-commit checks passed!"
|
@echo "✅ All pre-commit checks passed!"
|
||||||
|
|
||||||
|
.PHONY: pre-pr
|
||||||
|
pre-pr: fmt-check unsafe-code-check architecture-migration-check logging-guardrails-check clippy-check test ## Run full pre-PR checks
|
||||||
|
@echo "✅ All pre-PR checks passed!"
|
||||||
|
|
||||||
.PHONY: dev-check
|
.PHONY: dev-check
|
||||||
dev-check: fmt-check unsafe-code-check architecture-migration-check logging-guardrails-check quick-check ## Run fast local development checks
|
dev-check: fmt-check unsafe-code-check architecture-migration-check logging-guardrails-check quick-check ## Run fast local development checks
|
||||||
@echo "✅ Fast development checks passed!"
|
@echo "✅ Fast development checks passed!"
|
||||||
|
|||||||
@@ -67,6 +67,13 @@ Convert changes into independently verifiable outcomes. Prefer focused tests for
|
|||||||
|
|
||||||
For code changes, run and pass the following before opening a PR:
|
For code changes, run and pass the following before opening a PR:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make pre-pr
|
||||||
|
```
|
||||||
|
|
||||||
|
Before committing code changes, prefer focused verification for the touched
|
||||||
|
surface and use the faster local gate when a broad smoke check is needed:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make pre-commit
|
make pre-commit
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -66,7 +66,8 @@ How to use me:
|
|||||||
make fmt # Format code
|
make fmt # Format code
|
||||||
make clippy # Run clippy checks
|
make clippy # Run clippy checks
|
||||||
make test # Run tests
|
make test # Run tests
|
||||||
make pre-commit # Run all pre-commit checks
|
make pre-commit # Run fast pre-commit checks
|
||||||
|
make pre-pr # Run full pre-PR checks
|
||||||
|
|
||||||
🚀 Quick Start:
|
🚀 Quick Start:
|
||||||
make build # Build RustFS binary
|
make build # Build RustFS binary
|
||||||
@@ -78,4 +79,3 @@ endef
|
|||||||
export HEADER
|
export HEADER
|
||||||
|
|
||||||
-include $(addsuffix /*.mak, $(shell find .config/make -type d))
|
-include $(addsuffix /*.mak, $(shell find .config/make -type d))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user