Skip to content

Commit 9078a21

Browse files
Laoujinclaude
andcommitted
Build backend before starting in CI
Backend needs TypeScript compilation before running. Use start:build instead of start for production-like run. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3c25cc4 commit 9078a21

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/playwright.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,14 @@ jobs:
6565
cp ../../.env.test .env
6666
cp -r templates-example templates || true
6767
68+
- name: Build backend
69+
working-directory: ./confac/backend
70+
run: npm run build
71+
6872
- name: Start backend
6973
working-directory: ./confac/backend
7074
run: |
71-
npm start > backend.log 2>&1 &
75+
npm run start:build > backend.log 2>&1 &
7276
echo $! > backend.pid
7377
echo "Backend PID: $(cat backend.pid)"
7478
env:

0 commit comments

Comments
 (0)