Skip to content

Commit

Permalink
Merge pull request #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 54ed937 + 9bd516c commit 52db0cd
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 52db0cd

Please sign in to comment.