Skip to content

Commit b5e8955

Browse files
committed
retain server logs on e2e test failure
1 parent c3ff09c commit b5e8955

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/e2e-tests-on-commit.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,21 @@ jobs:
9090
path: e2e_repo/playwright-report/
9191
retention-days: 30
9292

93+
- name: 📝 Capture Server Logs
94+
if: always()
95+
uses: jwalton/gh-docker-logs@v2
96+
with:
97+
dest: "./logs"
98+
99+
- name: 📤 Upload Logs as Artifact
100+
uses: actions/upload-artifact@v4
101+
if: always()
102+
with:
103+
name: server-logs
104+
path: "./logs"
105+
retention-days: 2
106+
overwrite: true
107+
93108
run-patient-chart-e2e-tests:
94109
runs-on: ubuntu-latest
95110
needs: build
@@ -212,6 +227,21 @@ jobs:
212227
path: e2e_repo/playwright-report/
213228
retention-days: 30
214229

230+
- name: 📝 Capture Server Logs
231+
if: always()
232+
uses: jwalton/gh-docker-logs@v2
233+
with:
234+
dest: "./logs"
235+
236+
- name: 📤 Upload Logs as Artifact
237+
uses: actions/upload-artifact@v4
238+
if: always()
239+
with:
240+
name: server-logs
241+
path: "./logs"
242+
retention-days: 2
243+
overwrite: true
244+
215245
run-esm-core-e2e-tests:
216246
runs-on: ubuntu-latest
217247
needs: build
@@ -273,6 +303,21 @@ jobs:
273303
path: e2e_repo/playwright-report/
274304
retention-days: 30
275305

306+
- name: 📝 Capture Server Logs
307+
if: always()
308+
uses: jwalton/gh-docker-logs@v2
309+
with:
310+
dest: "./logs"
311+
312+
- name: 📤 Upload Logs as Artifact
313+
uses: actions/upload-artifact@v4
314+
if: always()
315+
with:
316+
name: server-logs
317+
path: "./logs"
318+
retention-days: 2
319+
overwrite: true
320+
276321
run-cohort-builder-e2e-tests:
277322
runs-on: ubuntu-latest
278323
needs: build
@@ -333,3 +378,18 @@ jobs:
333378
name: report-cohort-builder
334379
path: e2e_repo/playwright-report/
335380
retention-days: 30
381+
382+
- name: 📝 Capture Server Logs
383+
if: always()
384+
uses: jwalton/gh-docker-logs@v2
385+
with:
386+
dest: "./logs"
387+
388+
- name: 📤 Upload Logs as Artifact
389+
uses: actions/upload-artifact@v4
390+
if: always()
391+
with:
392+
name: server-logs
393+
path: "./logs"
394+
retention-days: 2
395+
overwrite: true

0 commit comments

Comments
 (0)