View Build Reports in GitHub Actions
You can view your build reports directly in your GitHub Actions workflow. This integration allows you to monitor your test results and access detailed reports without leaving the GitHub environment.
Prerequisites
- A BrowserStack Test Reporting & Analytics account.
- A GitHub repository with GitHub Actions enabled.
- Your test suite configured to run on BrowserStack.
- A workflow YAML file configured to run your tests.
- Your BrowserStack username and access key stored as GitHub secrets.
Steps to View Build Reports in GitHub Actions
Follow these steps to view your build reports in GitHub Actions:
Step 1: Add the BrowserStack Report Action
This step uses the BrowserStack Report Action to generate a build report. The action uses your stored GitHub secrets to connect to your account and retrieve build information.
Add the following code snippet to your workflow file, typically after your test-trigger step:
Step 2: Upload the Report as an Artifact (optional)
To get a more visual and persistent report, you can upload the generated report as a build artifact. This makes the report downloadable directly from the GitHub Actions summary page. This step is optional but highly recommended.
Add the following code snippet to your workflow file, after the BrowserStack Report Action step:
View the Reports
You can view the generated reports directly in the GitHub Actions interface. After adding these steps and triggering your GitHub Action, you can view the results.
-
To view the build report: Navigate to the Actions tab of your repository, select the specific workflow run, and click on the BrowserStack Report step in the summary. You will see the report displayed directly in the output logs.
-
To view the artifact: If you performed the optional second step, you will see an Artifacts section on the workflow run’s summary page. Click the artifact name to download the report file.
The downloaded report looks as follows:
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!