mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 01:38:25 -04:00
try using various commands in checks.yml to obtain admin logs while e2e tests are running
This commit is contained in:
5
.github/workflows/checks.yml
vendored
5
.github/workflows/checks.yml
vendored
@@ -119,7 +119,7 @@ jobs:
|
|||||||
curl --fail -v https://notify-api-staging.app.cloud.gov || exit 1
|
curl --fail -v https://notify-api-staging.app.cloud.gov || exit 1
|
||||||
- name: Run Admin server
|
- name: Run Admin server
|
||||||
run: |
|
run: |
|
||||||
make run-flask > >(tee admin-server.log) 2>&1 &
|
nohup make run-flask > admin-server.log 2>&1 &
|
||||||
env:
|
env:
|
||||||
API_HOST_NAME: https://notify-api-staging.app.cloud.gov/
|
API_HOST_NAME: https://notify-api-staging.app.cloud.gov/
|
||||||
# API_HOST_NAME: http://localhost:6011
|
# API_HOST_NAME: http://localhost:6011
|
||||||
@@ -132,6 +132,9 @@ jobs:
|
|||||||
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
|
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
|
||||||
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
||||||
NOTIFY_E2E_TEST_URI: http://localhost:6012/
|
NOTIFY_E2E_TEST_URI: http://localhost:6012/
|
||||||
|
- name: Tail logs
|
||||||
|
run: |
|
||||||
|
tail -f admin-server.log &
|
||||||
- name: Ensure Admin Server is running
|
- name: Ensure Admin Server is running
|
||||||
run: |
|
run: |
|
||||||
until curl -s http://localhost:6012; do
|
until curl -s http://localhost:6012; do
|
||||||
|
|||||||
Reference in New Issue
Block a user