@knapsack-pro/cypress
supports environment variables provided by GitHub Actions to run your tests. You have to define a few things in .github/workflows/main.yaml
config file.
- You need to set
KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS
environment variable in GitHub repository Settings -> Secrets. See creating and using secrets in GitHub Actions. - You should create as many parallel jobs as you need with
matrix.ci_node_total
andmatrix.ci_node_index
properties. If your test suite is slow you should use more parallel jobs.
Below you can find config for GitHub Actions.