#!/bin/sh
# script/check: run all backend checks (test, lint, fmt-check). Must not
# modify any files. The root script/check calls this, so the repo-wide
# gate covers the backend.
set -eu

ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"

main() {
    cd "$ROOT"
    "$ROOT/script/test"
    "$ROOT/script/lint"
    "$ROOT/script/fmt-check"
}

main "$@"
