-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
76 lines (51 loc) · 1.93 KB
/
Makefile
File metadata and controls
76 lines (51 loc) · 1.93 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.PHONY: help setup deps test fmt check lint ci db-up db-down cluster-up cluster-down bench load smoke
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
setup: ## Install dependencies and set up the project
mix deps.get
# mix ecto.setup # Uncomment in Phase 5 when Ecto is added
deps: ## Fetch dependencies
mix deps.get
test: ## Run all tests
mix test
fmt: ## Format code
mix format
check: ## Run formatter check
mix format --check-formatted
credo: ## Run Credo
mix credo --strict
dialyzer: ## Run Dialyzer
mix dialyzer --format short
audit: ## Audit dependencies
mix deps.audit
sobelow: ## Run security scan
mix sobelow --exit
lint: ## Run static analysis (credo)
mix credo --strict
ci: check credo dialyzer audit sobelow test ## Run CI checks locally
docs: ## Generate documentation
mix docs
db-up: ## Start database containers
docker-compose -f ops/docker-compose.db.yml up -d
db-down: ## Stop database containers
docker-compose -f ops/docker-compose.db.yml down
cluster-up: ## Start local cluster
docker-compose -f ops/docker-compose.cluster.yml up -d
cluster-down: ## Stop local cluster
docker-compose -f ops/docker-compose.cluster.yml down
bench: ## Run benchmarks
mix run tools/bench_cache.exs
load: ## Run load tests
k6 run tools/k6/load.js
smoke: ## Run smoke tests
k6 run tools/k6/smoke.js
livebook: ## Start Livebook server
livebook server --home livebooks/
jido-grade: ## Grade current code with Jido AI
mix jido.grade
jido-grade-interactive: ## Grade with detailed interactive feedback
mix jido.grade --interactive
jido-ask: ## Ask Jido a question (usage: make jido-ask QUESTION="What is recursion?")
mix jido.ask "$(QUESTION)"
jido-scaffold: ## Scaffold a new project (usage: make jido-scaffold TYPE=genserver NAME=Counter PHASE=3)
mix jido.scaffold --type $(TYPE) --name $(NAME) --phase $(PHASE)