From 70bb318ecc102070d1ff5eb30955c43f5e651309 Mon Sep 17 00:00:00 2001 From: WangDL Date: Sun, 24 May 2026 12:39:51 +0800 Subject: [PATCH] ci: show last 30 lines of test output to see full error Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 4406728..fb90a13 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -88,9 +88,7 @@ jobs: - name: Test-run app in foreground run: | cd /opt/zhixi/backend - NODE_OPTIONS="--enable-source-maps" timeout 10 node dist/main.js 2>&1 | grep -iE "error|Error|Prisma|prisma|cannot|Cannot|Invalid|invalid|unknown|Unknown|table|Table|column|Column|doesn|exist|missing|Missing" - echo "---" - echo "[test-run] EXIT: ${PIPESTATUS[0]}" + timeout 8 node dist/main.js 2>&1 | tail -30 || true - name: Restart API service run: |