{"id":22400126,"url":"https://github.com/currents-dev/playwright-gh-actions-demo","last_synced_at":"2025-07-22T22:02:47.674Z","repository":{"id":65909822,"uuid":"595478869","full_name":"currents-dev/playwright-gh-actions-demo","owner":"currents-dev","description":"Parallel Playwright Tests on GitHub Actions with Currents","archived":false,"fork":false,"pushed_at":"2025-06-17T16:16:40.000Z","size":2259,"stargazers_count":2,"open_issues_count":7,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-17T22:32:30.846Z","etag":null,"topics":["browser-automation","currents","e2e","parallel","playwright","testautomation"],"latest_commit_sha":null,"homepage":"https://current.dev/playwright","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/currents-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-31T06:48:29.000Z","updated_at":"2025-06-17T16:16:44.000Z","dependencies_parsed_at":"2023-02-20T23:45:18.838Z","dependency_job_id":"423bd4b3-43ad-4038-b84a-df6a850e7aa4","html_url":"https://github.com/currents-dev/playwright-gh-actions-demo","commit_stats":{"total_commits":299,"total_committers":8,"mean_commits":37.375,"dds":"0.41137123745819393","last_synced_commit":"0a0d5b395d3073d6aecda1ce6490069b697d9e46"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/currents-dev/playwright-gh-actions-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fplaywright-gh-actions-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fplaywright-gh-actions-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fplaywright-gh-actions-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fplaywright-gh-actions-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/currents-dev","download_url":"https://codeload.github.com/currents-dev/playwright-gh-actions-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fplaywright-gh-actions-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266580298,"owners_count":23951193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-automation","currents","e2e","parallel","playwright","testautomation"],"created_at":"2024-12-05T08:11:28.668Z","updated_at":"2025-07-22T22:02:47.658Z","avatar_url":"https://github.com/currents-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎭 Currents - Playwright - GitHub Actions\n\nThis repository showcases running [Playwright](https://playwright.dev/) tests on GitHub Actions in parallel, while using [Currents](https://currents.dev) as the reporting dashboard.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"830\" src=\"https://static.currents.dev/currents-playwright-banner-gh.png\" /\u003e\n\u003c/p\u003e\n\n## Documentation\n\nThe repo contains a few Playwright tests with one test that always fails (intentionally). The example configuration files use [Matrix Execution Strategy](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix) to run 3 containers for parallelization.\n\nTo reproduce the setup:\n\n- Create an organization, get your **Record Key** and **Project Id** at https://app.currents.dev\n- Set [GitHub secret variable](https://docs.github.com/en/actions/reference/encrypted-secrets) `CURRENTS_RECORD_KEY`.\n\n## Examples\n\nExamples of various variants of integrating Currents with Playwright on GitHub Actions:\n\n- [test-basic-pwc.yml](.github/workflows/test-basic-pwc.yml) - parallel run using 3 shards and `pwc` command. Basic example of running playwright tests in parallel using 3 containers of GitHub Actions Matrix and `pwc` command.\n\n- [test-basic-reporter.yml](.github/workflows/test-basic-reporter.yml) - parallel run using 3 shards and `playwright.config.ts`. Basic example of running playwright tests in parallel using 3 containers of GitHub Actions Matrix configuring Currents Reporter in `playwright.config.ts`.\n\n- [test-basic-reporter-with-summary.yml](.github/workflows/test-basic-reporter-with-summary.yml) - parallel run using 2 shards and `playwright.config.ts` prints summary at the end of a run for each shard.\n\n- [test-or8n.yml](.github/workflows/test-or8n.yml) - parallel Playwright Tests using [Currents Orchestration for Playwright](https://docs.currents.dev/guides/parallelization-guide/pw-parallelization/playwright-orchestration) - and GitHub Actions Matrix. Currents Orchestration speeds up CI runs by up to 40% (compared to native sharding) by optimally balancing tests between the available machines.\n\n- [argos-example.yml](.github/workflows/argos-example.yml) - parallel run using Argos CI and Currents orchestration.\n\n### Reruns only the failed tests\n\n- [rerun-shards-pwc.yml](.github/workflows/rerun-shards-pwc.yml) - rerun only the tests that failed in the previous run, using `pwc` helper command that is included in `@currents/playwright` package.\n- [rerun-shards-reporter.yml](.github/workflows/rerun-shards-reporter.yml) - rerun only the tests that failed in the previous run, using reporter explicitly configured in `playwright.config.ts`\n- [reruns-or8n.yml](.github/workflows/reruns-or8n.yml) - rerun only the tests that failed in the previous orchestrated run\n\n## Additional resources\n\n- Playwright Features on Currents: https://currents.dev/playwright\n- Integration Documentation: https://currents.dev/readme/integration-with-playwright/currents-playwright\n- CI Build ID Guide: https://currents.dev/readme/guides/cypress-ci-build-id\n\n## Results\n\nThe results are being reported to Currents for more efficient troubleshooting, and monitoring test suite flakiness and performance.\n\nCurrents will collect the following information:\n\n- console output\n- screenshots\n- videos\n- trace files\n- timing\n- outcomes\n- flaky tests\n- error details\n- tags for more convenient management of the tests\n\n### Currents Dashboard Results\n\nHere's how the results are being displayed in Currents dashboard (recorded on November 2023).\n\nhttps://github.com/currents-dev/playwright-gh-actions-demo/assets/1637928/3a95c8d5-a4c1-44a6-be59-24fefb79b354\n\n### PR Comment and Git Commit Status\n\nCurrents will add inline information to GitHub Pull Request. Example: https://github.com/currents-dev/playwright-gh-actions-demo/pull/17.\n\n- a comment containing run results summary\n  ![gh-actions-comment](https://github.com/currents-dev/playwright-gh-actions-demo/assets/1637928/6e9c11d3-8f92-4e2c-a70d-391bc04d2d52)\n\n- git commit status check for each detected project\n  ![gh-actions-status](https://github.com/currents-dev/playwright-gh-actions-demo/assets/1637928/d2a54c2d-befa-42d6-ac0a-96cbd387fc53)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurrents-dev%2Fplaywright-gh-actions-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurrents-dev%2Fplaywright-gh-actions-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurrents-dev%2Fplaywright-gh-actions-demo/lists"}