Skip to main content

GitHub CI Integration


GitHub is one of the best solutions for supporting continuous integration for Git projects for clients of all sizes. Now, quickly deploy your code and extensively test it to ensure a reliable delivery for your easy release.

This document will show you how to use HyperExecute Integration with GitHub Continuous Integration. We will use the WebdriverIO framework to execute our automation script.

Prerequisites For Integrating GitHub CI With HyperExecute


To perform your WebdriverIO tests with HyperExecute, you would need the following essentials to be already set up.

  1. Global Dependencies
  • A Git or GitHub repository.
  • Download and install node.js and node package manager or npm.
  • To install node.js with homebrew use the command below.
$ brew install node
  • If you already have npm set up, you might want to update to the most recent version. To upgrade npm, run the following code in your terminal.
npm install npm@latest –g
  • Install WebdriverIO with the npm command below.
npm install webdriverio
  1. LambdaTest Authentication Credentials

Keep your LambdaTest login, access key, and HubURL handy for authentication purposes. They must be configured as environment variables. You can find them on your LambdaTest automation dashboard by clicking on the key symbol next to the help button.

  • For Linux/Mac
$ export LT_USERNAME=<YOUR_LAMBDATEST_USERNAME> 
$ export LT_ACCESS_KEY=<YOUR_LAMBDATEST_ACCESS_KEY>
  • For Windows
$ set LT_ACCESS_KEY=<YOUR_LAMBDATEST_ACCESS_KEY>
$ set LT_ACCESS_KEY=<YOUR_LAMBDATEST_ACCESS_KEY>

Integrating HyperExecute With GitHub CI


To integrate GitHub CI with HyperExecute, you need to make use of the Hyperexecute CLI. HyperExecute CLI is a command line client to interact and run tests on HyperExecute and provides a host of other useful features that accelerate test execution.

For triggering tests using HyperExecute CLI, you have to download the HyperExecute CLI binary corresponding to the platform (or OS) from where the tests are triggered: Below are the HyperExecute CLI download links for different operating systems:

OSHyperExecute CLI download link
Windowshttps://downloads.lambdatest.com/hyperexecute/windows/hyperexecute.exe
macOShttps://downloads.lambdatest.com/hyperexecute/darwin/hyperexecute
Linuxhttps://downloads.lambdatest.com/hyperexecute/linux/hyperexecute

HyperExecute CLI provides different command-line flags that let you customize the HyperExecute experience. Once you download the HyperExecute CLI in your machine, run the command hyperexecute.exe --help on the terminal to explore the different flags.

Image

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

Book Demo

Help and Support

Related Articles