fix: capture and display Phoenix startup logs in e2e tests
This commit is contained in:
parent
7dcd2850da
commit
51e35182c1
1 changed files with 5 additions and 1 deletions
|
|
@ -159,7 +159,11 @@ jobs:
|
|||
run: mix ecto.setup
|
||||
|
||||
- name: Start Phoenix server in background
|
||||
run: mix phx.server &
|
||||
run: |
|
||||
mix phx.server > phoenix.log 2>&1 &
|
||||
echo $! > phoenix.pid
|
||||
echo "Phoenix server started with PID $(cat phoenix.pid)"
|
||||
tail -f phoenix.log &
|
||||
env:
|
||||
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE || 'dev_secret_key_base_for_testing_only_min_64_chars_required_here' }}
|
||||
PHX_HOST: localhost
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue