.PHONY: help lint test ci-quick ci-local all
.DEFAULT_GOAL := help
help:
@echo "Available targets:"
@echo ""
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-12s\033[0m %s\n", $$1, $$2}'
@echo ""
all:
$(MAKE) lint
$(MAKE) test
lint:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
test:
cargo nextest run --workspace --all-features
cargo test --doc
ci-quick:
./scripts/ci-quick.sh
ci-local:
./scripts/ci-local.sh