Files
emacs-mattermost/scripts/dev-check.sh
T
2026-11-16 17:37:16 +03:00

17 lines
368 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "${ROOT_DIR}/bridge"
if [[ ! -f Cargo.lock ]]; then
echo "Cargo.lock is missing. Generate it first:" >&2
echo " cd bridge && cargo generate-lockfile" >&2
exit 1
fi
cargo fmt --all -- --check
cargo check --workspace --locked
cargo test --workspace --locked