Skip to content

Commit 8639862

Browse files
committed
ci: upload artifacts on failure
1 parent 0eaf0e9 commit 8639862

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/nightly-backward-compatibility.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,17 @@ jobs:
9797
--work-directory=./artifacts \
9898
--devnet-scripts-directory=./mithril-test-lab/mithril-devnet \
9999
--cardano-node-version ${{ matrix.cardano_node_version }}
100+
101+
- name: Upload E2E Tests Artifacts
102+
if: ${{ failure() }}
103+
uses: actions/upload-artifact@v4
104+
with:
105+
name: mithril-e2e-tests-artifacts-run_${{ github.run_number }}-attempt_${{ github.run_attempt }}-tag_${{ matrix.tag }}-node-${{ matrix.node }}-cardano-${{ matrix.cardano_node_version }}-run_id_${{ matrix.run_id }}
106+
path: |
107+
./artifacts/*
108+
# including node.sock makes the upload fails so exclude them:
109+
!./artifacts/**/node.sock
110+
# exclude cardano tools, saving ~50mb of data:
111+
!./artifacts/devnet/cardano-cli
112+
!./artifacts/devnet/cardano-node
113+
if-no-files-found: error

0 commit comments

Comments
 (0)