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
# Makefile for groundwork
#
# Mirrors the CI suite so contributors can reproduce CI failures locally.
.PHONY: help fmt fmt-check clippy test build clean \
ci ci-format ci-lint ci-test ci-audit ci-coverage ci-deny ci-package
help:
@echo "Usage: make <target>"
@echo ""
@echo "Development:"
@echo " fmt Format code"
@echo " fmt-check Check code formatting"
@echo " clippy Run clippy lints"
@echo " test Run tests"
@echo " build Build the crate"
@echo " clean Clean build artifacts"
@echo ""
@echo "CI mirrors (reproduce CI failures locally):"
@echo " ci Full CI suite"
@echo " ci-format Check formatting"
@echo " ci-lint Run clippy"
@echo " ci-test Run tests via nextest"
@echo " ci-audit Security audit"
@echo " ci-coverage Coverage check"
@echo " ci-deny Dependency license audit"
@echo " ci-package Validate crate packaging"
# ============================================================================
# Development
# ============================================================================
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
clippy:
cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings
test:
cargo test --workspace
build:
cargo build --release
clean:
cargo clean
# ============================================================================
# CI suite targets (mirrors .gitea/workflows/ci.yml)
# ============================================================================
ci-format:
cargo fmt --all -- --check
ci-lint:
cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings
ci-test:
cargo nextest run --all-features
ci-audit:
cargo audit
ci-coverage:
cargo llvm-cov nextest --all-features --lcov --output-path lcov.info \
--fail-under-lines 80
cargo llvm-cov report --summary-only
ci-deny:
cargo deny check licenses
ci-package:
cargo package --registry brefwiz --no-verify --allow-dirty
ci: ci-format ci-lint ci-test ci-audit ci-deny ci-package
@echo "✅ All CI checks passed"