Skip to content

Commit 9579e51

Browse files
authored
add failure logs to github workflows (#186)
Signed-off-by: Subhobrata Dey <[email protected]>
1 parent b7e5469 commit 9579e51

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,27 @@ jobs:
5959
with:
6060
token: ${{ secrets.CODECOV_TOKEN }}
6161

62+
- name: Upload failed logs
63+
uses: actions/upload-artifact@v2
64+
if: ${{ failure() && matrix.os == 'ubuntu-latest' }}
65+
with:
66+
name: logs-ubuntu
67+
path: build/testclusters/integTest-*/logs/*
68+
69+
- name: Upload failed logs
70+
uses: actions/upload-artifact@v2
71+
if: ${{ failure() && matrix.os == 'macos-latest' }}
72+
with:
73+
name: logs-mac
74+
path: build/testclusters/integTest-*/logs/*
75+
76+
- name: Upload failed logs
77+
uses: actions/upload-artifact@v2
78+
if: ${{ failure() && matrix.os == 'windows-latest' }}
79+
with:
80+
name: logs-windows
81+
path: build\testclusters\integTest-*\logs\*
82+
6283
- name: Upload Artifacts
6384
uses: actions/upload-artifact@v1
6485
with:

.github/workflows/multi-node-test-workflow.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ jobs:
2828
uses: actions/checkout@v2
2929
- name: Run integration tests with multi node config
3030
run: ./gradlew integTest -PnumNodes=3
31+
- name: Upload failed logs
32+
uses: actions/upload-artifact@v2
33+
if: failure()
34+
with:
35+
name: logs
36+
path: build/testclusters/integTest-*/logs/*

0 commit comments

Comments
 (0)