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