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; }