forked from Nukesor/pueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
31 lines (27 loc) · 785 Bytes
/
Justfile
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
# Bump all deps, including incompatible version upgrades
bump:
just ensure_installed upgrade
cargo update
cargo upgrade --incompatible
cargo test --workspace
# Run the test suite with nexttest
nextest:
just ensure_installed nextest
cargo nextest run --workspace
# If you change anything in here, make sure to also adjust the lint CI job!
lint:
just ensure_installed sort
cargo fmt --all -- --check
cargo sort --workspace --check
cargo clippy --tests --workspace -- -D warnings
format:
just ensure_installed sort
cargo fmt
cargo sort --workspace
ensure_installed *args:
#!/bin/bash
cargo --list | grep -q {{ args }}
if [[ $? -ne 0 ]]; then
echo "error: cargo-{{ args }} is not installed"
exit 1
fi