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.
Download or Clone the code sample from the LambdaTest GitHub repository to run the tests on the SmartUI.
View on GitHubStep 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:
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.
Check your output in the Smart UI Dashboard