From 3d03f5bdf456457cfb142c92da9a11730bbeb59a Mon Sep 17 00:00:00 2001 From: Merlin Pannewitz Date: Wed, 22 Jan 2025 12:43:44 +0100 Subject: [PATCH] Fix uploading playwright test report Nothing was uploaded in case of ci tests. --- .github/workflows/check-and-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-and-test.yml b/.github/workflows/check-and-test.yml index af12ed7a..4e377662 100644 --- a/.github/workflows/check-and-test.yml +++ b/.github/workflows/check-and-test.yml @@ -93,7 +93,7 @@ jobs: run: npm run test:e2e --workspace ${{ env.WORKSPACE }} - uses: actions/upload-artifact@v4 - if: failure() && steps.e2e.outcome == 'failure' + if: failure() && (steps.e2e.outcome == 'failure' || steps.e2e-ci.outcome == 'failure') with: name: playwright-e2e-test-results path: packages/${{ inputs.package }}/tests/playwright/playwright-report @@ -115,10 +115,10 @@ jobs: VITE_PORT: 4183 - uses: actions/upload-artifact@v4 - if: failure() && steps.a11y.outcome == 'failure' + if: failure() && (steps.a11y.outcome == 'failure' || steps.a11y-ci.outcome == 'failure') with: name: playwright-a11y-test-results - path: packages/*/tests/a11y/playwright-report + path: packages/${{ inputs.package }}/tests/a11y/playwright-report - name: Send failure to Slack uses: digitalservicebund/notify-on-failure-gha@814d0c4b2ad6a3443e89c991f8657b10126510bf # v1.5.0