#!/usr/bin/env bash # Repeatable Phase 1 verification: vet, test, and race across every workspace module, # plus a built-binary integration check of examples/hello. set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "$ROOT" run_module() { local name="$1" local dir="$2" echo "==> ${name} (${dir})" ( cd "$dir" go vet ./... go test ./... go test -race ./... ) } run_module "root" "." run_module "hello app" "examples/hello" run_module "base plugin" "examples/hello/plugins/base" run_module "greeter plugin" "examples/hello/plugins/greeter" run_module "optional plugin" "examples/hello/plugins/optional" echo "==> built-binary integration (examples/hello)" ( cd examples/hello go run ../../cmd/summer build ./bin/hello greeter:hello ) echo "phase1 check passed"