GitHub App
Cypress and Playwright GitHub App integration for Currents dashboard
Last updated
Cypress and Playwright GitHub App integration for Currents dashboard
Last updated
Currents integration with GitHub allows posting results of your Playwright and Cypress tests as:
Commit status checks and / or
Pull Request comment
To set up an integration:
Open your project settings select a Project > Settings > Integrations
Click “Connect” in the “Connect your GitHub repositories” section.
Your browser will be redirected to GitHub. Approve the new installation for currents-bot or request an approval from your GitHub organization admin.
Currents doesn't have access to the source code 🙈
We only user the following permissions:
read and write to issues (for posting PR comments)
read and write to Pull Requests (for posting PR comments)
read and write to commit statuses (for posting commit status updates)
After approving the installation you'll be able to see the list of repositories. To finish the setup select a repository and click “Save” to reveal the integration settings (see below).
You can have multiple GitHub organizations connected to Currents. Click + Add Installation to restart the approval process for a new organization.
After the new approval is complete, you will be able to switch the GitHub organizations and select a new repository.
To detach a repository from a project, navigate to Project Settings > Integration > GitHub and click “Disconnect Repository”.
To completely remove GitHub integration open Project Settings > Integration > GitHub > Configure and then uninstall “currents-bot” Github App. Uninstalling the app will automatically detach all the projects from their respective repositories.
Enabling PR comments will post a summary of your run to the associated GitHub PR. The comment will be posted:
after run’s completion - with the details of test results
after run’s timeout - with the last known test results
Re-running tests for the same PR will delete the previous comment and post a new one with the most recent result unless Keep Old Results option is enabled
Enabling the "Failed Runs Only" toggle would prevent posting a comment for successful runs - i.e. runs that have 0 failed or skipped tests.
Events Selection
You can customize what event can trigger posting a PR comment:
Run Finish - will post a comment when a run completes its execution without cancellation or a timeout
Run Cancelled - will post a comment upon the run's cancellation, due to Fail Fast Strategyor cancellation via the Dashboard. See more at Canceling Runs
Run Timeout - will post a comment after a run's timeout is detected. Read more about Run Timeouts.
When enabled, old results posted as a PR comment will be preserved, i.e. the integration will keep the comments with the results of the previous runs.
Enabling Commit Status checks will trigger updates for the associated commit - the status depends on the outcomes of your run:
“Pending” for on-going runs
“Failed” for failed or timed out runs
“Passed” for successful runs
Set the commit status label to distinguish the GitHub status checks one from another. For example, when multiple Current Dashboard projects are connected to the same repository, setting the Commit Status label will conveniently display the status check for each project separately.
Using the same status label for the same repo across different projects can create a conflict - runs from both projects will overwrite the associated status check item.
If you are reporting tests from multiple frameworks in the same job, you can enable this option to make sure the commit status check has a prefix with the framework label. This will guarantee that each testing framework gets their own status check.
Make sure to update any repository rules that makes it mandatory for the commit status check to pass, as enabling this option will change the commit status title.
Single Notification for all groups (Optional) – enabling will update GitHub commit status once per run event, regardless of the number of groups.
Commit information must be available for GitHub integrations (PR comments, commit status updates). See Commit Information.
To expose your git information, please make sure that .git
directory is present in your CI environment
You can explicitly provide git information via environment variables
Behind the scenes, Currents is using git commit data to identify the PR (issue) to comment on.
The simplified flow is:
Get the list of pull requests associated with the commit using an API call: 'GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls',
Select a PR with HEAD commit matching the reported commit sha
Sometimes the commit SHA reported for a run is different from PR's HEAD commit - our integration would not be able to detect the Pull Requests and won't post a comment and status checks.
Please contact our support via in-app chat and share:
Run that is affected
Commit sha of the affected run
HEAD commit sha of the associated Pull Request
Read more about Commit data for GitHub Actions.