Files
ds2api/tests/scripts/run-unit-go.sh
2026-04-26 06:58:20 +08:00

11 lines
204 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$ROOT_DIR"
export GOCACHE="${GOCACHE:-${ROOT_DIR}/.tmp/go-build-cache}"
mkdir -p "$GOCACHE"
go test ./... "$@"