-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 910 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# =============================================================================
# Weavegraph - Makefile
# =============================================================================
.PHONY: help lint test ci-quick ci-local all
# Default target
.DEFAULT_GOAL := help
help: ## Show this help message
@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: ## Run lint and test
$(MAKE) lint
$(MAKE) test
lint: ## Check code formatting and run clippy
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
test: ## Run all tests (nextest + doctests)
cargo nextest run --workspace --all-features
cargo test --doc
ci-quick: ## Run quick CI checks script
./scripts/ci-quick.sh
ci-local: ## Run local CI checks script
./scripts/ci-local.sh