From 67515ccba9dc33385141fb8f89f84329ac01bf09 Mon Sep 17 00:00:00 2001 From: James Feng <47167674+GhostDragon124@users.noreply.github.com> Date: Thu, 4 Jun 2026 17:12:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D=20bun=20test=20?= =?UTF-8?q?=E9=9D=9E=E9=9B=B6=E9=80=80=E5=87=BA=E7=A0=81=E8=A2=AB=20set=20?= =?UTF-8?q?-e=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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0af79b21b..4eaae67d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,13 +28,14 @@ jobs: - name: Test run: | + set +e bun test 2>&1 | tee /tmp/ci-test.log + 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)" + echo "Failures: $FAILS (baseline: 4) | bun test exit: $TEST_EXIT" if [ "$FAILS" -le 4 ]; then echo "✅ Test baseline OK" - exit 0 else echo "❌ Test regressions detected" exit 1