Skip to content

Commit

Permalink
Fix uploading playwright test report
Browse files Browse the repository at this point in the history
Nothing was uploaded in case of ci tests.
  • Loading branch information
mpanne committed Jan 22, 2025
1 parent c6751ad commit 3d03f5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3d03f5b

Please sign in to comment.