Commit aba77c08 authored by Annie Ke's avatar Annie Ke Committed by GitHub

feat[ci]: upload logs for sync tests if failure (#1098)

parent 52d02b14
...@@ -42,3 +42,21 @@ jobs: ...@@ -42,3 +42,21 @@ jobs:
run: | run: |
yarn yarn
yarn test:sync yarn test:sync
- name: Collect docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v1
with:
images: 'ethereumoptimism/builder,ethereumoptimism/hardhat,ethereumoptimism/deployer,ethereumoptimism/data-transport-layer,ethereumoptimism/l2geth,ethereumoptimism/message-relayer,ethereumoptimism/batch-submitter,ethereumoptimism/l2geth'
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment