-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
90 lines (65 loc) · 1.65 KB
/
Copy pathMakefile
File metadata and controls
90 lines (65 loc) · 1.65 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# ── Wardex — Developer Makefile ────────────────────────
.PHONY: build run test lint fmt check clean release dev admin fuzz bench doc smoke release-acceptance release-docs-check
# ── Build ──
build:
cargo build
release:
cargo build --release
check:
cargo check
# ── Run ──
run:
cargo run
dev: build admin
cargo run
# ── Test ──
test:
cargo test
test-verbose:
cargo test -- --nocapture
fuzz:
cd fuzz && cargo +nightly fuzz run fuzz_pipeline -- -max_total_time=60
bench:
cargo bench
# ── Lint / Format ──
lint:
cargo clippy --all-targets -- -D warnings
fmt:
cargo fmt --all
cd admin-console && npx eslint --fix src/
fmt-check:
cargo fmt --all -- --check
# ── Admin Console ──
admin:
cd admin-console && npm ci && npm run build
admin-dev:
cd admin-console && npm run dev
admin-test:
cd admin-console && npm test
admin-e2e:
cd admin-console && npx playwright test
# ── Docker ──
docker-build:
docker build -t wardex .
docker-run:
docker compose up -d
docker-stop:
docker compose down
# ── Documentation ──
doc:
cargo doc --no-deps --open
# ── Clean ──
clean:
cargo clean
rm -rf admin-console/node_modules admin-console/output
# ── CI convenience ──
ci: fmt-check lint test admin-test
smoke:
cargo check --all-targets
cargo test --lib
cd admin-console && CI=1 TERM=dumb npm_config_progress=false npm run lint
cd admin-console && CI=1 TERM=dumb npm_config_progress=false npm run test -- --run
release-acceptance:
bash ./scripts/release_acceptance.sh
release-docs-check:
python3 ./scripts/validate_release_docs.py