From 01f2f7efd26efdf654e9722814c9dc9771611fe1 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 29 May 2026 16:33:09 +0900 Subject: [PATCH] ci: guard CI bun test completion summary Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31bd1c771..870162fa7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,17 @@ jobs: BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/cli @ast-grep/napi" - name: Run tests - run: bun test + run: | + set -o pipefail + log_path="${RUNNER_TEMP:-/tmp}/omo-bun-test.log" + set +e + bun test 2>&1 | tee "$log_path" + test_status="${PIPESTATUS[0]}" + set -e + if [ "$test_status" -ne 0 ]; then + exit "$test_status" + fi + bun run script/assert-test-summary.ts "$log_path" typecheck: runs-on: ubuntu-latest