debug: increase startup wait and show full logs on failure
This commit is contained in:
parent
280ac70c1a
commit
0694f724e1
1 changed files with 10 additions and 2 deletions
|
|
@ -165,8 +165,8 @@ jobs:
|
|||
mix phx.server > phoenix.log 2>&1 &
|
||||
echo $! > phoenix.pid
|
||||
echo "Phoenix server started with PID $(cat phoenix.pid)"
|
||||
sleep 3
|
||||
echo "=== Phoenix startup logs ==="
|
||||
sleep 10
|
||||
echo "=== Phoenix startup logs (after 10s) ==="
|
||||
cat phoenix.log || echo "No logs yet"
|
||||
echo "=== Process status ==="
|
||||
ps aux | grep $(cat phoenix.pid) || echo "Process not found"
|
||||
|
|
@ -178,6 +178,14 @@ jobs:
|
|||
run: |
|
||||
timeout 60 bash -c 'until curl -f http://localhost:4000/health; do sleep 2; done'
|
||||
|
||||
- name: Show Phoenix logs on failure
|
||||
if: failure()
|
||||
run: |
|
||||
echo "=== Full Phoenix logs ==="
|
||||
cat phoenix.log || echo "No log file found"
|
||||
echo "=== Process status ==="
|
||||
ps aux | grep phoenix || echo "No Phoenix processes found"
|
||||
|
||||
- name: Install Playwright dependencies
|
||||
working-directory: e2e
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue