Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,49 @@ jobs:

- name: Run tests
run: npm test
env:
PWTEST_BOT_NAME: ${{ matrix.os }}

- name: Upload blob report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: blob-report-${{ matrix.os }}
path: blob-report
retention-days: 1

merge-reports:
permissions:
pull-requests: write # Post comments to the PR
contents: read # This is required for actions/checkout to succeed
if: ${{ !cancelled() }}
needs: [build-and-test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- uses: actions/checkout@v4
name: Checkout GHA markdown reporter
with:
repository: microsoft/playwright
path: playwright
sparse-checkout: |
packages/playwright-dashboard/src/

- name: Download blob reports
uses: actions/download-artifact@v4
with:
path: all-blob-reports
pattern: blob-report-*
merge-multiple: true
- name: Merge into HTML Report
run: npx playwright merge-reports all-blob-reports --reporter ./playwright/packages/playwright-dashboard/src/ghaMarkdownReporter.ts,html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: playwright-report
retention-days: 7
7 changes: 6 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'list',
reporter: process.env.CI ? [
['list'],
['blob', { fileName: `${process.env.PWTEST_BOT_NAME}.zip` }],
] : [
['list']
],
projects: [
{ name: 'chrome' },
{ name: 'msedge', use: { mcpBrowser: 'msedge' } },
Expand Down
Loading