Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

chore(ci): run test-go.sh self-test in Go test entry points (MUL-5169) (#5802)

Jiayuan Zhangba0b711787d4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e140756a9d..1a0a74a299 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 abf703431e..5bc7f09af8 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 894e1b7b64..d7b9170b65 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; }