/playwright-gh-actions-demo

Primary LanguageTypeScriptApache License 2.0Apache-2.0

🎭 Currents - Playwright - GitHub Actions

This repository showcases running Playwright tests on GitHub Actions in parallel, while using Currents as the reporting dashboard.

Documentation

The repo contains a few Playwright tests with one test that always fails (intentionally). The example configuration files use Matrix Execution Strategy to run 3 containers for parallelization.

To reproduce the setup:

See the example GH Actions configuration:

Additional resources:

Results

The results are being reported to Currents for more efficient troubleshooting, and monitoring test suite flakiness and performance.

Currents will collect the following information:

  • console output
  • screenshots
  • videos
  • trace files
  • timing
  • outcomes
  • flaky tests
  • error details
  • tags for more convenient management of the tests

Currents Dashboard Results

Here's how the results are being displayed in Currents dashboard (recorded on November 2023).

gh-actions-demo.mp4

PR Comment and Git Commit Status

Currents will add inline information to GitHub Pull Request. Example: currents-dev/playwright-gh-actions-demo#17.

  • a comment containing run results summary gh-actions-comment

  • git commit status check for each detected project gh-actions-status