Skip to main content
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

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

  1. A BrowserStack Test Reporting & Analytics account.
  2. A GitHub repository with GitHub Actions enabled.
  3. Your test suite configured to run on BrowserStack.
  4. A workflow YAML file configured to run your tests.
  5. 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:

.github/workflows/your-workflow-file.yml
Copy icon Copy

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:

.github/workflows/your-workflow-file.yml
Copy icon Copy

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. Screenshot of GitHub Actions workflow summary showing the BrowserStack Report step output with test execution details and build information

  • 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. Screenshot of GitHub Actions workflow summary page displaying the Artifacts section with a downloadable test report file

The downloaded report looks as follows: Screenshot of the downloaded HTML test report displaying comprehensive test execution results, including pass/fail status, execution times, and detailed test metrics

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

Is this page helping you?

Yes
No

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!

Talk to an Expert
Download Copy Check Circle