1
0
mirror of https://github.com/nukesor/pueue synced 2024-06-29 06:04:21 +00:00
pueue/Justfile
2024-05-24 13:51:32 +02:00

32 lines
785 B
Makefile

# 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