https://github.com/lambdatest/lambdatest-tunnel-action
A Github Action to launch LambdaTest Tunnel
https://github.com/lambdatest/lambdatest-tunnel-action
Last synced: 5 months ago
JSON representation
A Github Action to launch LambdaTest Tunnel
- Host: GitHub
- URL: https://github.com/lambdatest/lambdatest-tunnel-action
- Owner: LambdaTest
- Created: 2020-06-15T11:20:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-16T15:14:00.000Z (about 1 year ago)
- Last Synced: 2024-11-29T16:05:55.672Z (5 months ago)
- Language: TypeScript
- Size: 158 KB
- Stars: 19
- Watchers: 5
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# LambdaTest Tunnel Action[](https://github.com/LambdaTest/LambdaTest-tunnel-action/actions/workflows/main.yml)
[](https://github.com/LambdaTest/LambdaTest-tunnel-action/actions/workflows/update_semver.yml)
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
```yaml
jobs:
test-tunnel:
runs-on: ubuntu-latest
steps:
# ...
-name: Start Tunnel
uses: LambdaTest/LambdaTest-tunnel-action@v2
id: tunnel
with:
user: ${{ secrets.LT_USERNAME }}
accessKey: ${{ secrets.LT_ACCESS_KEY }}
tunnelName: "testTunnel"
- run: npm test
- 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](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-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.
### `egressOnly`
Routes only outgoing traffic via the proxy specified.
### `mitm`
Enable Man in the Middle Mode
### `dns`
Comma separated list of dns servers.
### `verbose`
Run tunnel in verbose mode.
### `loadBalanced`
Run tunnel in load balanced mode.
### `bypassHosts`
Comma separated list of host to bypass from tunnel.
### `basicAuth`
Add basicAuth to provided hosts on the format "https://USER:[email protected]"
> We suggest using [github secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets)
for sensitive information## Outputs
### `port`
Port on which tunnel api server is running.
### `logFileName`
Name of log file of tunnel.
### `usePrivateIP`
Tunnel to use system private IP for remote connections.