Skip to content

Commit

Permalink
Merge pull request IQSS#214 from IQSS/213-dump-docker-logs-on-failure
Browse files Browse the repository at this point in the history
Dump Docker logs on failure
  • Loading branch information
pdurbin authored Nov 1, 2023
2 parents aff7bb8 + edcaee2 commit 259995a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ jobs:
- name: Run e2e tests
run: npm run test:e2e

- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2
with:
dest: './logs'

- name: Tar logs
if: failure()
run: tar cvzf ./logs.tgz ./logs

- name: Upload logs to GitHub
if: failure()
uses: actions/upload-artifact@master
with:
name: logs.tgz
path: ./logs.tgz

component:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 259995a

Please sign in to comment.