justfile
Rama main · réplica de lectura del repositorio original.
default:
@just --list
# Build the project
build:
cargo build
# Build in release mode
release:
cargo build --release
# Run the server
serve:
cargo run
# Run all tests
# --workspace + --all-features so the published integration crates under
# crates/ are gated too; without it `cargo test` covers only the server.
test:
cargo test --workspace --all-features
# Run unit tests only
test-unit:
cargo test --lib
# Run integration tests only
test-integration:
cargo test --test api_integration
# Run a specific test by name
test-one NAME:
cargo test {{ NAME }}
# Check compilation without building
check:
cargo check
# Run clippy lints
lint:
cargo clippy --workspace --all-features -- -D warnings
# Format code
fmt:
cargo fmt
# Check formatting without modifying
fmt-check:
cargo fmt --all -- --check
# Run clippy + format check
ci: fmt-check lint test
# Check the public endpoint + TLS cert (defaults to api.bollwark.eu)
monitor URL="":
bash scripts/check-public-endpoint.sh {{ URL }}