From fb9effcefddace479a6bb0bedbabae7f3b0768ec Mon Sep 17 00:00:00 2001 From: Stig Ofstad Date: Wed, 8 May 2024 12:33:12 +0200 Subject: [PATCH] fix(CI): upload dmss logs as artifact in integration tests --- .github/workflows/integration-tests.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index fd7b2b42e..2846208a4 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -155,6 +155,18 @@ jobs: path: e2e/test-results/ retention-days: 30 + - name: Create dmss log file + id: get-logs + if: failure() + run: docker logs example_dmss_1 &> dmss-logs.json + + - uses: actions/upload-artifact@v3 + if: ${{ failure() && steps.get-logs.conclusion == 'success' }} + with: + name: dmss-logs + path: dmss-logs.json + retention-days: 30 + - uses: actions/upload-artifact@v3 if: always() with: