Skip to content

Instantly share code, notes, and snippets.

@blake-newman
Created December 18, 2019 14:43
Show Gist options
  • Save blake-newman/6c5b2aae06db57f078238b19efa808b2 to your computer and use it in GitHub Desktop.
Save blake-newman/6c5b2aae06db57f078238b19efa808b2 to your computer and use it in GitHub Desktop.
GitHub action workflow
name: My workflow
on: [pull_request]
jobs:
tests:
name: Cypress run
runs-on: ubuntu-latest
strategy:
matrix:
# run 2 copies of the current job in parallel
containers: [1, 2]
steps:
- name: Checkout
uses: actions/checkout@v1
# because of "record" and "parallel" parameters
# these containers will load balance all found tests among themselves
- name: Cypress run
uses: cypress-io/github-action@v1
with:
record: true
parallel: true
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment