From 9bd516c06fdc563df3a740c161ade910e8f4f42b Mon Sep 17 00:00:00 2001 From: Philip Durbin Date: Wed, 1 Nov 2023 13:36:23 -0400 Subject: [PATCH] Dump Docker logs on failure #213 For troubleshooting this issue: - #213 --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d962cc4f4..98394cf2d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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