From fe9bdf2236c196d6aacb5da0e3d4d06cfd8f770b Mon Sep 17 00:00:00 2001 From: Raido Kaju Date: Mon, 11 Nov 2024 14:12:17 +0200 Subject: [PATCH] feat: add container logs to CS artifacts --- .github/workflows/build.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 801cb3a08e..8af417560d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -151,13 +151,19 @@ jobs: name: Central Server system test path: src/central-server/admin-service/ui-system-test/build/test-results/**/TEST-*.xml reporter: java-junit - - name: Upload CS screenshots + - name: Fix ui-system-test build dir permissions + run: sudo chown -R $USER src/central-server/admin-service/ui-system-test/build/cs-container-logs/ && sudo chown -R $USER src/central-server/admin-service/ui-system-test/build/ca-container-logs/ + if: always() + - name: Upload CS report id: cs-artifacts-step - if: failure() uses: actions/upload-artifact@v4 + if: always() with: - name: CS System Test screenshots - path: src/central-server/admin-service/ui-system-test/build/reports/test-automation/selenide-failures/*.png + name: CS System Test report + path: | + src/central-server/admin-service/ui-system-test/cs-container-logs/ + src/central-server/admin-service/ui-system-test/ca-container-logs/ + src/central-server/admin-service/ui-system-test/reports/test-automation/selenide-failures/*.png - name: Load test report history uses: actions/checkout@v4 if: always()