-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
58 lines (39 loc) · 961 Bytes
/
Copy pathjustfile
File metadata and controls
58 lines (39 loc) · 961 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
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
default:
@just --list
# Setup git hooks
setup:
git config core.hooksPath .githooks
check: clippy test check-fmt lint
lint: lint-toml check-typos check-nix-fmt lint-actions
fmt: fmt-rust fmt-toml fmt-nix
fix:
cargo clippy --workspace --all-targets --fix --allow-dirty --allow-staged
just fmt
build *args:
cargo build --workspace {{args}}
clippy:
cargo clippy --workspace --all-targets -- -D warnings
test:
cargo nextest run --workspace
coverage:
cargo llvm-cov nextest --workspace --lcov --output-path lcov.info
coverage-html:
cargo llvm-cov nextest --workspace --html
check-fmt:
cargo fmt --all -- --check
fmt-rust:
cargo fmt --all
lint-toml:
taplo check
fmt-toml:
taplo fmt
check-nix-fmt:
alejandra --check flake.nix
fmt-nix:
alejandra flake.nix
check-typos:
typos
lint-actions:
actionlint
e2e:
cargo nextest run -p ferrex-core -p ferrex-server --test '*' --no-capture