Skip to content

Commit

Permalink
retain server logs on e2e test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
NethmiRodrigo committed Feb 6, 2025
1 parent c3ff09c commit b5e8955
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/e2e-tests-on-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,21 @@ jobs:
path: e2e_repo/playwright-report/
retention-days: 30

- name: 📝 Capture Server Logs
if: always()
uses: jwalton/gh-docker-logs@v2
with:
dest: "./logs"

- name: 📤 Upload Logs as Artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: server-logs
path: "./logs"
retention-days: 2
overwrite: true

run-patient-chart-e2e-tests:
runs-on: ubuntu-latest
needs: build
Expand Down Expand Up @@ -212,6 +227,21 @@ jobs:
path: e2e_repo/playwright-report/
retention-days: 30

- name: 📝 Capture Server Logs
if: always()
uses: jwalton/gh-docker-logs@v2
with:
dest: "./logs"

- name: 📤 Upload Logs as Artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: server-logs
path: "./logs"
retention-days: 2
overwrite: true

run-esm-core-e2e-tests:
runs-on: ubuntu-latest
needs: build
Expand Down Expand Up @@ -273,6 +303,21 @@ jobs:
path: e2e_repo/playwright-report/
retention-days: 30

- name: 📝 Capture Server Logs
if: always()
uses: jwalton/gh-docker-logs@v2
with:
dest: "./logs"

- name: 📤 Upload Logs as Artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: server-logs
path: "./logs"
retention-days: 2
overwrite: true

run-cohort-builder-e2e-tests:
runs-on: ubuntu-latest
needs: build
Expand Down Expand Up @@ -333,3 +378,18 @@ jobs:
name: report-cohort-builder
path: e2e_repo/playwright-report/
retention-days: 30

- name: 📝 Capture Server Logs
if: always()
uses: jwalton/gh-docker-logs@v2
with:
dest: "./logs"

- name: 📤 Upload Logs as Artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: server-logs
path: "./logs"
retention-days: 2
overwrite: true

0 comments on commit b5e8955

Please sign in to comment.