Skip to main content

Semaphore Pipeline Integration with SmartUI

Semaphore is a modern CI/CD (Continuous Integration and Continuous Delivery) platform designed for developers to automate the process of building, testing, and deploying software.

This guide explains how to integrate your project with the Semaphore CI/CD pipeline to trigger visual regression testing with LambdaTest SmartUI whenever changes are made to your repository.

Steps to Integrate Semaphore Pipeline with SmartUI

To integrate Semaphore 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 Project

  • Click on the Create New >> Choose Repository.
  • Select your desired repository from your VCS (GitHub or Bitbucket)
Create New Project

Step 2: Setup your Workflow

  • Select your desired build tool and edit your workflow as per your requirement. A sample workflow is given for your reference:
  • Click on Run the Workflow button to trigger your tests
semaphore.yml
loading...
tip

You can also store your LT_USERNAME, LT_ACCESS_KEY and PROJECT_TOKEN as secrets in your Semaphore project repository.

Step 3: Check the output

Create New Project

Best Practices

Secret Management

  • Never commit credentials to repository
  • Use Semaphore Secrets for all sensitive data
  • Rotate secrets regularly
  • Use different secrets for different environments

Troubleshooting

Issue: Pipeline Fails with "Secret Not Found"

Symptoms: Pipeline fails with error about missing secrets

Possible Causes:

  • Secrets not created in Semaphore project
  • Secret names don't match
  • Secrets not accessible to pipeline
  • Secret scope issues

Solutions:

  1. Verify secrets exist in project settings:

    • Go to Project Settings → Secrets
    • Check LT_USERNAME, LT_ACCESS_KEY, and PROJECT_TOKEN exist
  2. Ensure secret names match exactly (case-sensitive)

  3. Check secret scope (project or organization level)

  4. Verify secrets are accessible to the pipeline

Additional Resources

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

Book Demo

Help and Support

Related Articles