ci: add test-run step to capture app startup errors before restart
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 33s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-24 11:47:52 +08:00
parent 81c49ca067
commit 61d1f3885c

View File

@ -79,6 +79,11 @@ jobs:
run: | run: |
cd /opt/zhixi/backend && npx prisma generate cd /opt/zhixi/backend && npx prisma generate
- name: Test-run API to capture startup errors
run: |
cd /opt/zhixi/backend
timeout 5 node dist/main.js 2>&1 || true
- name: Restart API service - name: Restart API service
run: | run: |
sudo systemctl restart zhixi-api sudo systemctl restart zhixi-api