Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
wifi

GitHub Action

LambdaTest Tunnel Action

v1.0.3

LambdaTest Tunnel Action

wifi

LambdaTest Tunnel Action

A Github Action to launch LambdaTest Tunnel

Installation

Copy and paste the following snippet into your .yml file.

              

- name: LambdaTest Tunnel Action

uses: LambdaTest/LambdaTest-tunnel-action@v1.0.3

Learn more about this action in LambdaTest/LambdaTest-tunnel-action

Choose a version

LAMBDATEST Logo

LambdaTest Tunnel Action

Lint Test Tunnel Releases

This action seamlessly integrates LambdaTest Tunnel and run Selenium tests on 2000+ browsers for your locally hosted or privately hosted pages with LambdaTest Selenium Grid.

Example usage

jobs:
    test-tunnel:
        runs-on: ubuntu-latest
        steps:
            # ...
            -name: Start Tunnel
             uses: LambdaTest/LambdaTest-tunnel-action@v1.0.0
             id: tunnel
             with:
               user: ${{ secrets.LT_EMAIL }}
               accessKey: ${{ secrets.LT_ACCESS_KEY }}
               tunnelName: "testTunnel"
            - run: npm test
              
            # Gracefully close the tunnel  
            - name: Stop Tunnel
              run: curl  -X DELETE http://127.0.0.1:${{ steps.tunnel.outputs.port }}/api/v1.0/stop

            - name: Export Tunnel Logs for debugging
              uses: actions/upload-artifact@v2
              with:
                name: tunnel_logs
                path: ${{ steps.tunnel.outputs.logFileName }}
            # ...

Inputs

user

Required LambdaTest user email.

accessKey

Required LambdaTest user Access Key.

We suggest using github secrets for storing LambdaTest access key

tunnelName

Required Tunnel name to uniquely identify your tunnel on LambdaTest platform.

proxyHost

Proxy host if connecting tunnel via proxy.

proxyPort

Proxy port if connecting tunnel via proxy.

proxyUser

Proxy username if connecting tunnel via proxy that has authentication enabled.

proxyPass

Proxy password if connecting tunnel via proxy that has authentication enabled.

sharedTunnel

Sharing tunnel among team members.

ingressOnly

Routes only incoming traffic via the proxy specified.

dns

Comma separated list of dns servers.

verbose

Run tunnel in verbose mode.

Outputs

port

Port on which tunnel api server is running.

logFileName

Name of log file of tunnel.