Skip to content

Commit

Permalink
Produce combined E2E test report from sharded blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
joonashak committed Dec 25, 2024
1 parent 4452f32 commit 8a60dc3
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,47 @@ jobs:
npx playwright test --shard=${{ matrix.shardIndex }}/${{
matrix.shardTotal }}
working-directory: testing/e2e
- name: Upload test report
- name: Upload blob report
uses: actions/upload-artifact@v4
if: always()
if: ${{ !cancelled() }}
with:
# name: playwright-report
name: playwright-report-blob-${{ matrix.shardIndex }}
path: testing/e2e/playwright-report/
name: blob-report-${{ matrix.shardIndex }}
path: testing/e2e/blob-report/
retention-days: 1
- name: Upload test results on failure
uses: actions/upload-artifact@v4
if: failure()
with:
# name: test-results
name: test-results-blob-${{ matrix.shardIndex }}
name: test-results-shard-${{ matrix.shardIndex }}
path: testing/e2e/test-results/

e2e-report:
name: E2E test report
runs-on: ubuntu-latest
needs:
- test-e2e
if: ${{ !cancelled() }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci
working-directory: testing/e2e
- name: Download blob reports
uses: actions/download-artifact@v4
with:
path: testing/e2e/all-blob-reports
pattern: blob-report-*
merge-multiple: true
- name: Merge into HTML Report
run: npx playwright merge-reports --reporter html ./all-blob-reports
working-directory: testing/e2e
- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: e2e-test-report--attempt-${{ github.run_attempt }}
path: testing/e2e/playwright-report

0 comments on commit 8a60dc3

Please sign in to comment.