Skip to content

Instantly share code, notes, and snippets.

@coreylight
Created January 3, 2022 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreylight/cc05f5c03e6d39dafefd8dd14f365c53 to your computer and use it in GitHub Desktop.
Save coreylight/cc05f5c03e6d39dafefd8dd14f365c53 to your computer and use it in GitHub Desktop.
Cypress test.yml snippet
name: Test
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
cypress:
needs: [build, check_labels]
runs-on: ubuntu-latest
continue-on-error: ${{ needs.check_labels.outputs.is_cd == 'true' }}
strategy:
fail-fast: false
matrix:
node-version: [14.x]
containers: ${{ fromJson(needs.build.outputs.matrix) }}
- name: Cypress
id: cypress
uses: cypress-io/github-action@v2
timeout-minutes: 30
with:
record: true
parallel: true
group: test
start: node util/ci/cypress
command-prefix: 'percy exec --'
spec: ${{ env.SPECS }}
tag: ${{ github.event_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_video: true
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
PERCY_PARALLEL_NONCE: ${{ github.run_id }}
PERCY_PARALLEL_TOTAL: -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment