-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (39 loc) · 746 Bytes
/
justfile
File metadata and controls
50 lines (39 loc) · 746 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
# default recipe to display help information
default:
@just --list
# Run CI locally in containers
ci-full:
act
# Run CI locally
ci: audit fmt test nix-check nix-build clippy pre-commit build
@echo "Running CI checks"
# Run Nix CI checks
nix-check:
nix flake check
# Run Nix Build
nix-build:
nix build
# Run clippy
clippy:
cargo clippy
# Run clippy fixes
clippy-fix:
cargo clippy --fix --allow-dirty
# Run pre-commit
pre-commit:
pre-commit run --all-files --show-diff-on-failure
# Run all formatters
fmt:
cargo fmt --all
alejandra .
# Run all tests
alias t := test
test:
cargo test
# Run cargo security audit
audit:
cargo audit
# Build the project
alias b := build
build:
cargo build