From 1a6652dde393c1453acf1b0bfb8e134229fcfbdf Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 29 May 2026 16:33:32 +0900 Subject: [PATCH] ci: guard publish bun test completion summary Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .github/workflows/publish.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 210205b95..dff636590 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,7 +46,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