From cda606adbb0f6a102added9f2360a42f221bea8f Mon Sep 17 00:00:00 2001 From: Daniel Gak Anagrov Date: Thu, 17 Jul 2025 10:51:39 +0200 Subject: [PATCH] feat(ci): upload logs on failure (#5097) --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c997481bc..cbdd680f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -232,6 +232,13 @@ jobs: - name: Run tests run: yarn test:ci working-directory: 'packages/preview-service' + - name: 'Upload Artifact on failure' + if: failure() + uses: actions/upload-artifact@v4 + with: + name: preview-service-logs-on-failure + path: /tmp/**/*.log + retention-days: 5 docker-build-postgres-container: runs-on: blacksmith