.PHONY: help check-pr check-integration check-all sob lint test integration-test
.DEFAULT_GOAL := help
help:
@echo "Available targets:"
@echo " help - List available commands"
@echo " check-pr - [PR Suite] Run all checks required for a Pull Request (SOB, Lint, Unit Tests)"
@echo " check-integration - [Integration Suite] Run the full integration tests"
@echo " check-all - Run the complete check suite (PR + Integration)"
@echo " sob - Check Signed-off-by tags (default: HEAD~1..HEAD). Use RANGE to override."
@echo " lint - Run all linters (clippy, fmt, yamllint)"
@echo " test - Run unit tests"
@echo " integration-test - [Slow] Run integration tests using benchmarks"
check-pr: sob lint test
check-integration: integration-test
check-all: check-pr check-integration
RANGE ?= HEAD~1..HEAD
sob:
@./scripts/check-sob.sh "$(RANGE)"
lint:
@cargo clippy --all-targets --all-features --release -- -D warnings
@cargo fmt --all -- --check
@yamllint .
test:
@cargo test --release
integration-test:
@./scripts/integration-test.sh