Skip to content

Commit

Permalink
ci: add steps to zip up container logs on versioned test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bizob2828 committed Oct 10, 2023
1 parent 636e8f0 commit 48023e4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@ jobs:
with:
name: versioned-tests-${{ matrix.node-version }}
path: ./coverage/versioned/lcov.info
- name: Collect docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2
with:
dest: ./logs-${{ matrix.node-version }}
- name: Tar logs
if: failure()
run: tar cvzf ./logs-${{ matrix.node-version }}.tgz ./logs-${{ matrix.node-version }}
- name: Upload logs to GitHub
if: failure()
uses: actions/upload-artifact@master
with:
name: logs-${{ matrix.node-version }}.tgz
path: ./logs-${{ matrix.node-version }}.tgz

# There is no coverage for external as that's tracked in their respective repos
versioned-external:
Expand Down

0 comments on commit 48023e4

Please sign in to comment.