From 650ddf655cb2c298ca506f7fa1ef83c456a5eac3 Mon Sep 17 00:00:00 2001 From: Trisha Anand Date: Thu, 16 Feb 2023 14:12:57 +0530 Subject: [PATCH] ci : Preserve the docker logs across the parallel cypress runs to debug failures (#20671) Co-authored-by: Aishwarya UR --- .github/workflows/ci-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 7b922176b4..697ab069df 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -380,17 +380,17 @@ jobs: env: "NODE_ENV=development" - name: Collect CI container logs - if: always() + if: failure() working-directory: "." run: | docker logs appsmith 2>&1 > ~/dockerlogs.txt # Upload docker logs - name: Upload failed test list artifact - if: always() + if: failure() uses: actions/upload-artifact@v3 with: - name: dockerlogs + name: dockerlogs-${{ matrix.job }} path: ~/dockerlogs.txt # Set status = failedtest