626efa9c34
Deploy / deploy (push) Successful in 1m16s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
525 B
Bash
Executable File
21 lines
525 B
Bash
Executable File
#!/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"
|