#!/usr/bin/env bash set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")/.." cargo fmt --all -- --check rustfmt --edition 2024 --check crates/shacraft-server/src/control.rs crates/shacraft-server/src/world_streaming.rs bash scripts/build_physics.sh cargo clippy --workspace --all-targets --locked -- -D warnings cargo test --workspace --locked cargo build --workspace --locked python3 scripts/check_storage.py node --test client/tests/*.test.js node scripts/check_server.mjs --binary target/debug/shacraft-server --port "${SHACRAFT_TEST_PORT:-4011}" --output artifacts/server-e2e-debug.json node scripts/check_chunk_streaming.mjs --binary target/debug/shacraft-server --port "${SHACRAFT_TEST_PORT:-4011}" --output artifacts/chunk-streaming/network-report.json node scripts/check_player_physics.mjs --binary target/debug/shacraft-server --port "${SHACRAFT_TEST_PORT:-4011}" --output artifacts/physics/network-report.json