feat(tests): also print error output for e2e tests

This commit is contained in:
perf3ct 2025-07-21 23:16:13 +00:00
parent c994940453
commit 98c3bd50ef
1 changed files with 12 additions and 1 deletions

View File

@ -89,8 +89,11 @@ jobs:
- name: Start backend server
run: |
./target/release/readur &
echo "Starting server with DATABASE_URL: $DATABASE_URL"
./target/release/readur > server.log 2>&1 &
echo $! > backend.pid
sleep 2
echo "Server started with PID: $(cat backend.pid)"
env:
DATABASE_URL: postgres://readur:readur@localhost:5432/readur
JWT_SECRET: test-secret-key
@ -99,6 +102,7 @@ jobs:
UPLOAD_PATH: ./uploads
WATCH_PATH: ./watch
RUST_BACKTRACE: 1
DEBUG: 1
- name: Wait for backend to be ready
run: |
@ -132,6 +136,13 @@ jobs:
frontend/playwright-report/
retention-days: 30
- name: Print server logs on failure
if: failure()
run: |
echo "=== Server logs ==="
cat server.log || echo "No server logs found"
echo "=== End of server logs ==="
- name: Stop backend server
if: always()
run: |