From ba0b711787d42e1ec6de90701573fe03768633b1 Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Thu, 23 Jul 2026 02:27:11 +0800 Subject: [PATCH] chore(ci): run test-go.sh self-test in Go test entry points (MUL-5169) (#5802) Co-authored-by: Lambda Co-authored-by: multica-agent --- .github/workflows/ci.yml | 3 +++ .github/workflows/release.yml | 3 +++ scripts/check.sh | 2 ++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e140756a9..1a0a74a29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -169,6 +169,9 @@ jobs: - name: Run migrations run: cd server && go run ./cmd/migrate up + - name: Verify Go test wrapper + run: bash scripts/test-go.test.sh + - name: Test run: bash scripts/test-go.sh --race diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abf703431..5bc7f09af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,6 +51,9 @@ jobs: go-version-file: server/go.mod cache-dependency-path: server/go.sum + - name: Verify Go test wrapper + run: bash scripts/test-go.test.sh + - name: Run tests run: bash scripts/test-go.sh --race diff --git a/scripts/check.sh b/scripts/check.sh index 894e1b7b6..d7b9170b6 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -95,6 +95,8 @@ pnpm test || { EXIT_CODE=1; exit 1; } # -------------------------------------------------------------------------- echo "" echo "==> [3/5] Go tests..." +echo "==> Verifying Go test wrapper..." +bash scripts/test-go.test.sh || { EXIT_CODE=1; exit 1; } echo "==> Running database migrations..." (cd server && go run ./cmd/migrate up) || { EXIT_CODE=1; exit 1; } bash scripts/test-go.sh || { EXIT_CODE=1; exit 1; }