#!/usr/bin/env bash # test.sh — run backend and frontend checks set -euo pipefail export PATH="/opt/homebrew/bin:$PATH" export GOPROXY="${GOPROXY:-https://goproxy.cn,direct}" export PUB_HOSTED_URL="${PUB_HOSTED_URL:-https://pub.flutter-io.cn}" export FLUTTER_STORAGE_BASE_URL="${FLUTTER_STORAGE_BASE_URL:-https://storage.flutter-io.cn}" echo "==> test: go test" cd backend go test ./... cd .. echo "==> test: flutter analyze" cd client flutter analyze --no-fatal-infos --no-fatal-warnings cd .. echo "==> test: done"