Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit b1301de

Browse files
committed
ci: Collect docker logs on failure.
1 parent 550adae commit b1301de

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/test-build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,14 @@ jobs:
219219
timeout_minutes: 15
220220
retry_on: error
221221
command: cd streamr-client-testing && DEBUG='' java -jar build/libs/client_testing-1.0-SNAPSHOT.jar -s $TEST_NAME -c config/$CONFIG_NAME.conf -n $NUM_MESSAGES
222+
- name: Collect docker logs on failure
223+
if: failure()
224+
uses: jwalton/gh-docker-logs@v1
225+
with:
226+
dest: './logs'
227+
- name: Upload logs to GitHub
228+
if: failure()
229+
uses: actions/upload-artifact@master
230+
with:
231+
name: docker-logs-${{ github.job }}
232+
path: ./logs

.github/workflows/test-code.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@ jobs:
112112
services-to-start: "mysql redis core-api cassandra parity-node0 parity-sidechain-node0 bridge broker-node-no-storage-1 broker-node-no-storage-2 broker-node-storage-1 nginx smtp"
113113
- name: Run Test
114114
run: npm run $TEST_NAME
115+
- name: Collect docker logs on failure
116+
if: failure()
117+
uses: jwalton/gh-docker-logs@v1
118+
with:
119+
dest: './logs'
120+
- name: Upload logs to GitHub
121+
if: failure()
122+
uses: actions/upload-artifact@master
123+
with:
124+
name: docker-logs-${{ github.job }}
125+
path: ./logs
115126

116127
flakey:
117128
name: Flakey Tests using Node ${{ matrix.node-version }}

0 commit comments

Comments
 (0)