Skip to main content

GitHub Actions Pipeline Integration with SmartUI

GitHub Actions is a powerful automation and continuous integration/continuous delivery (CI/CD) platform built into GitHub. It allows you to create custom automated YAML workflows directly within your GitHub repositories. This helps you to build and test every pull request to your repository, or deploy merged pull requests to production.

This document will show you how to integrate GitHub Actions Pipeline with SmartUI to greatly shorten your test cycles.

Steps to Integrate GitHub Actions Pipeline with SmartUI

To integrate GitHub Actions Pipeline with SmartUI, follow the below steps. You can use your own project to configure and test it. For demo purposes, we are using the sample repository.

Sample repo

Download or Clone the code sample from the LambdaTest GitHub repository to run the tests on the SmartUI.

Image View on GitHub

Step 1: Create your Secrets

  • Click on the Settings of your repository.
  • Go to the Security option > Secrets and Variables > Actions.
  • Create your secrets with variable name LT_USERNAME and LT_ACCESS_KEY. You can fetch your credentials from the Accounts and Settings dashboard.

Step 2: Create a New Workflow

  • Navigate to the main page of the repository.
  • Under your repository name, click Actions.
  • In the left sidebar, click the New workflow button.

Step 3: Create the GitHub Actions workflow YAML file

To create the GitHub Actions pipeline YAML file, follow the sample command below:

github-actions.yml
loading...

Step 4: Run the Workflow

To run the new pipeline that you just created, click the Run workflow button on the workflow page. A prompt will ask you to enter your PROJECT_TOKEN. You can get your project token from the dashboard after creating your SmartUI project.

Create New Project

Check your output in the Smart UI Dashboard

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles