lohani-mohit/Playwright Report Publisher
Merge Playwright shard reports and publish to GCS, Slack, and GitHub PR comments
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| working-directory | Working directory containing Playwright tests | no | tests |
| report-directory | Directory containing the Playwright HTML report (used when merge-blob-reports is false) | no | playwright-report |
| merge-blob-reports | Whether to merge sharded blob reports into HTML + JSON before publishing | no | false |
| blob-report-path | Path to blob reports directory (relative to working-directory). Used when merge-blob-reports is true | no | all-blob-reports |
| suite-name | Name of the test suite (shown in Slack, PR comments, and step summary) | no | Playwright |
| test-status | Test result status: 'passed', 'failed', or 'cancelled'. Auto-detected from report if not provided | no | "" |
| upload-to-gcs | Whether to upload the HTML report to GCS | no | true |
| gcs-bucket | GCS bucket name (without gs:// prefix) | no | "" |
| gcs-path-prefix | Path prefix within the GCS bucket. Final path: {prefix}/{timestamp}/ | no | test-report |
| environment | Environment name (appended to GCS path: {prefix}-{env}/{timestamp}/) | no | dev |
| gcp-sa-key | GCP service account key (JSON) for GCS uploads | no | "" |
| gcp-project-id | GCP project ID | no | "" |
| report-base-url | Custom base URL for report links (e.g. https://reports.example.com). Defaults to https://storage.googleapis.com/{gcs-bucket} | no | "" |
| post-to | Where to post results: 'github', 'slack', 'both', or 'none' | no | both |
| slack-notify | When to send Slack alerts: 'always', 'on-failure', 'on-success', 'never' | no | always |
| slack-webhook-url | Slack incoming webhook URL | no | "" |
| github-token | GitHub token for PR comments | no | ${{ github.token }} |
| github-step-summary | Whether to write a GitHub Actions step summary | no | true |
Outputs
| name | description |
|---|---|
| report-url | URL to the published Playwright report |
| test-status | Status of the tests (passed/failed/cancelled) |
| total-tests | Total number of tests |
| passed-tests | Number of passed tests |
| failed-tests | Number of failed tests |
| flaky-tests | Number of flaky tests |
| skipped-tests | Number of skipped tests |
| duration | Total test duration in seconds |