Skip to content

Commit 970b8df

Browse files
committed
feat: add log files to workflow
1 parent 2915e31 commit 970b8df

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/website-test.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ jobs:
8585
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
8686
cd tests/frontendIntegration/django2x
8787
88-
gunicorn mysite.wsgi --bind 0.0.0.0:8080 &
89-
gunicorn mysite.wsgi --bind 0.0.0.0:8082 &
88+
gunicorn mysite.wsgi --bind 0.0.0.0:8080 &> app-server.log &
89+
gunicorn mysite.wsgi --bind 0.0.0.0:8082 &> app-server-cross-domain.log &
9090
9191
- name: Install dependencies and start servers (django3x)
9292
if: matrix.framework == 'django3x'
@@ -98,8 +98,8 @@ jobs:
9898
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
9999
cd tests/frontendIntegration/django3x
100100
101-
uvicorn mysite.asgi:application --port 8080 &
102-
uvicorn mysite.asgi:application --port 8082 &
101+
uvicorn mysite.asgi:application --port 8080 &> app-server.log &
102+
uvicorn mysite.asgi:application --port 8082 &> app-server-cross-domain.log &
103103
104104
- name: Install dependencies and start servers (drf_sync)
105105
if: matrix.framework == 'drf_sync'
@@ -111,8 +111,8 @@ jobs:
111111
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
112112
cd tests/frontendIntegration/drf_sync
113113
114-
gunicorn mysite.wsgi --bind 0.0.0.0:8080 &
115-
gunicorn mysite.wsgi --bind 0.0.0.0:8082 &
114+
gunicorn mysite.wsgi --bind 0.0.0.0:8080 &> app-server.log &
115+
gunicorn mysite.wsgi --bind 0.0.0.0:8082 &> app-server-cross-domain.log &
116116
117117
- name: Install dependencies and start servers (drf_async)
118118
if: matrix.framework == 'drf_async'
@@ -124,8 +124,8 @@ jobs:
124124
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
125125
cd tests/frontendIntegration/drf_async
126126
127-
uvicorn mysite.asgi:application --port 8080 &
128-
uvicorn mysite.asgi:application --port 8082 &
127+
uvicorn mysite.asgi:application --port 8080 &> app-server.log &
128+
uvicorn mysite.asgi:application --port 8082 &> app-server-cross-domain.log &
129129
130130
- name: Install dependencies and start servers (fastapi)
131131
if: matrix.framework == 'fastapi'
@@ -137,8 +137,8 @@ jobs:
137137
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
138138
cd tests/frontendIntegration/fastapi-server
139139
140-
uvicorn app:app --host 0.0.0.0 --port 8080 &
141-
uvicorn app:app --host 0.0.0.0 --port 8082 &
140+
uvicorn app:app --host 0.0.0.0 --port 8080 &> app-server.log &
141+
uvicorn app:app --host 0.0.0.0 --port 8082 &> app-server-cross-domain.log &
142142
143143
- name: Install dependencies and start servers (flask)
144144
if: matrix.framework == 'flask'
@@ -150,8 +150,8 @@ jobs:
150150
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
151151
cd tests/frontendIntegration/flask-server
152152
153-
python3 app.py --port 8080 &
154-
python3 app.py --port 8082 &
153+
python3 app.py --port 8080 &> app-server.log &
154+
python3 app.py --port 8082 &> app-server-cross-domain.log &
155155
156156
- name: Install dependencies and start servers (flask-nest-asyncio)
157157
if: matrix.framework == 'flask-nest-asyncio'
@@ -164,8 +164,8 @@ jobs:
164164
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
165165
cd tests/frontendIntegration/flask-server
166166
167-
python3 app.py --port 8080 &
168-
python3 app.py --port 8082 &
167+
python3 app.py --port 8080 &> app-server.log &
168+
python3 app.py --port 8082 &> app-server-cross-domain.log &
169169
170170
- uses: supertokens/website-testing-action@main
171171
with:

0 commit comments

Comments
 (0)