run Playwright tests with GitHub Actions and upload test-results (trace.zip) to GitHub Repo
- Fork your own copy
- Your Repository / Settings / Actions / General / Workflow permissions
- Select "Read and write permissions"
- Save
- Your Repository / Actions / playwright / Run workflow
- Update links in README.md (replace felixlohmeier/playwright-github-action)
test example / get started link:
- latest run:
- Desktop: https://trace.playwright.dev/?trace=https://raw.githubusercontent.com/felixlohmeier/playwright-github-action/refs/heads/main/test-results/example-get-started-link-desktop/trace.zip
- Mobile: https://trace.playwright.dev/?trace=https://raw.githubusercontent.com/felixlohmeier/playwright-github-action/refs/heads/main/test-results/example-get-started-link-mobile/trace.zip
- specific commit:
- Desktop: https://trace.playwright.dev/?trace=https://raw.githubusercontent.com/felixlohmeier/playwright-github-action/c27b6ec/test-results/example-get-started-link-desktop/trace.zip
- Mobile: https://trace.playwright.dev/?trace=https://raw.githubusercontent.com/felixlohmeier/playwright-github-action/c27b6ec/main/test-results/example-get-started-link-mobile/trace.zip
npx playwright test --reporter html
npx playwright show-report