From 6e1e16b85bef6bfbddd9f31e1387cf004664bc37 Mon Sep 17 00:00:00 2001 From: Gilbert Kwan Date: Tue, 5 Sep 2023 14:14:11 -0400 Subject: [PATCH] Update test.yml (#52) capture logs from client and system services if failure --- .github/workflows/test.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 84f3b1c..3b14136 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,10 +60,15 @@ jobs: run: | logsPath=$(find . -name "console.log"); cat $logsPath | grep Launching - - name: Archive server logs if failed + - name: Archive client server logs if failed if: failure() uses: actions/upload-artifact@v2 with: - name: server-logs - path: finish/target/liberty/wlp/usr/servers/defaultServer/logs/ - + name: client-server-logs + path: finish/client/target/liberty/wlp/usr/servers/defaultServer/logs/ + - name: Archive system server logs if failed + if: failure() + uses: actions/upload-artifact@v2 + with: + name: system-server-logs + path: finish/system/target/liberty/wlp/usr/servers/defaultServer/logs/