From 941df7e49828db702910da2085c26a625b0e8d73 Mon Sep 17 00:00:00 2001 From: James Feng <47167674+GhostDragon124@users.noreply.github.com> Date: Thu, 4 Jun 2026 17:15:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20bun=20test=20=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E5=86=99=E5=88=B0=E6=96=87=E4=BB=B6=E9=81=BF=E5=85=8D=20GitHub?= =?UTF-8?q?=20log=20=E6=88=AA=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4eaae67d5..974433a43 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,11 +29,13 @@ jobs: - name: Test run: | set +e - bun test 2>&1 | tee /tmp/ci-test.log + bun test > /tmp/ci-test.log 2>&1 TEST_EXIT=$? FAILS=$(grep -oE '[0-9]+ fail' /tmp/ci-test.log | tail -1 | grep -oE '[0-9]+') if [ -z "$FAILS" ]; then FAILS=0; fi echo "Failures: $FAILS (baseline: 4) | bun test exit: $TEST_EXIT" + # Show last 30 lines of test output + tail -30 /tmp/ci-test.log if [ "$FAILS" -le 4 ]; then echo "✅ Test baseline OK" else