-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
63 lines (50 loc) · 1.85 KB
/
Copy pathjustfile
File metadata and controls
63 lines (50 loc) · 1.85 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
# actantDB — common dev commands. Install `just`: https://just.systems
# Run `just --list` to see all recipes.
default:
@just --list
# Compile everything.
build:
cargo build --workspace --all-targets
# Fast compile-check (no codegen). Use during scaffolding.
check:
cargo check --workspace --all-targets
# Run all tests.
test:
cargo test --workspace --all-targets
# Format everything.
fmt:
cargo fmt --all
# Format check (CI mode).
fmt-check:
cargo fmt --all -- --check
# Lint with clippy.
lint:
cargo clippy --workspace --all-targets -- -D warnings
# Generate Rust API docs and fail on rustdoc warnings.
docs-rust:
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --lib --no-deps
# Apply migrations to a local dev database.
migrate db="./actant.dev.sqlite":
@echo "Migrations will run via actant-storage; see crates/actant-storage."
@echo "Phase 1: actantdb migrate --db {{db}}"
# Run the server with verbose logs.
serve:
RUST_LOG=actant=debug cargo run -p actant-server --bin actantdb-server
# Spec verification: every specs/*.md must contain a Verification section.
# STATUS.md is a freeze marker, not a spec — skip it.
verify-specs:
@for f in specs/*.md; do \
[ "$(basename "$f")" = "STATUS.md" ] && continue; \
grep -q '^## Verification' "$f" || { echo "missing Verification in $f"; exit 1; }; \
done
@echo "all specs OK"
# Agent-package lint: every agents/actant-*.md must have the required sections.
verify-agents:
@for f in agents/actant-*.md; do \
for s in "## Context" "## Scope" "## Specs to read first" "## Acceptance criteria" "## Do NOT"; do \
grep -qF "$s" "$f" || { echo "missing '$s' in $f"; exit 1; }; \
done; \
done
@echo "all agent packages OK"
# Full CI parity (run locally before pushing).
ci: fmt-check lint test verify-specs verify-agents