-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
30 lines (23 loc) · 842 Bytes
/
justfile
File metadata and controls
30 lines (23 loc) · 842 Bytes
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
# Common commands for CI
set shell := ["sh", "-c"]
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
# Run all CI targets
ci: check fmt clippy test
@echo 'All checks passed!'
# Ensure all checks pass
check:
cargo check --workspace --all-targets --all-features
cargo check --workspace --all-targets --no-default-features
# Ensure all code is properly formatted
fmt:
cargo fmt --all
# Run Clippy with all warnings enabled
clippy:
cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::all
cargo clippy --workspace --all-targets --no-default-features -- -D warnings -W clippy::all
# Run documentation tests
doctest:
cargo test --workspace --doc
# Run doc and normal tests with the default runner (not nextest)
test:
cargo test --workspace --all-targets --all-features