-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
52 lines (40 loc) · 1.2 KB
/
Justfile
File metadata and controls
52 lines (40 loc) · 1.2 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
# Game Mods development commands
# Install just: cargo install just
# Default recipe: run all CI checks locally
default: ci
# Format all code
fmt:
cargo fmt --all
# Check formatting (CI mode)
fmt-check:
cargo fmt --all -- --check
# Run clippy lints
lint:
cargo clippy --all-targets -- -D warnings
# Run all tests
test:
cargo test
# Run tests for a specific package
test-pkg pkg:
cargo test -p {{pkg}}
# Build in release mode
build:
cargo build --release
# Run cargo-deny license/advisory checks
deny:
cargo deny check
# Run full CI pipeline locally (matches GitHub Actions order)
ci: fmt-check lint test build deny
# Run CI in Docker (matches GitHub Actions exactly)
ci-docker:
docker compose --profile ci run --rm rust-ci cargo fmt --all -- --check
docker compose --profile ci run --rm rust-ci cargo clippy --all-targets -- -D warnings
docker compose --profile ci run --rm rust-ci cargo test
docker compose --profile ci run --rm rust-ci cargo build --release
docker compose --profile ci run --rm rust-ci cargo deny check
# Generate code coverage report
coverage:
cargo tarpaulin --out html --output-dir target/coverage
# Clean build artifacts
clean:
cargo clean