GitHub Action
Saucectl Run Action
This action installs saucectl and launches tests.
You can use it to run your tests on Sauce Labs !
jobs:
test:
runs-on: ubuntu-latest
name: Action Test
steps:
# ...
- uses: saucelabs/saucectl-run-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
# ...
API rate limit exceeded
due to unauthenticated requests, be sure to provide GITHUB_TOKEN
through env
field.
jobs:
test:
runs-on: ubuntu-latest
name: Action Test
steps:
- uses: saucelabs/saucectl-run-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
sauce-username: ${{ secrets.SAUCE_USERNAME }}
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }}
saucectl-version: v0.109.0
working-directory: ./testrunner-toolkit/cypress/
testing-environment: sauce
Version of saucectl to use.
Default: latest
Sauce Labs user name.
Sauce Labs Access Key.
Folder in-which saucectl will be run.
Default: .
Configuration file to use with saucectl.
Default: .sauce/config.yml
This value is relative to
working-directory
.
Region flag to pass to saucectl.
Similar to
--region <region>
parameter available in saucectl.
Skip execution of saucectl (only install binary).
Select the suite to run.
Similar to
--select-suite <suite>
parameter available in saucectl.
Concurency to use.
Similar to
--ccy <ccy>
parameter available in saucectl.
Environement variables to add.
Similar to
-e
parameter available in saucectl.
Due to github actions limitation, environement variables needs to be passed as a string.
Example:
- uses: saucelabs/saucectl-run-action@v2
with:
sauce-username: ${{ secrets.SAUCE_USERNAME }}
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }}
env: |
MY_FIRST_VAR=VALUE
MY_SECOND_VAR=VALUE
Display console.log when tests succeed. Set to true
to enable.
Similar to
--show-console-log
parameter available in saucectl.
Path where to store logs.
Similar to
--logDir <path>
parameter available in saucectl.