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