From 79018e8d86f9277c2d7cf9ec7e1f35e7e7ff85bf Mon Sep 17 00:00:00 2001 From: WangDL Date: Sun, 24 May 2026 12:36:25 +0800 Subject: [PATCH] ci: grep for Prisma errors in test-run output Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index cb5fe89..4406728 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -88,8 +88,9 @@ jobs: - name: Test-run app in foreground run: | cd /opt/zhixi/backend - NODE_OPTIONS="--enable-source-maps" timeout 5 node dist/main.js 2>&1 - echo "[test-run] EXIT CODE: $?" + 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]}" - name: Restart API service run: |