Created
January 3, 2022 20:18
-
-
Save coreylight/cc05f5c03e6d39dafefd8dd14f365c53 to your computer and use it in GitHub Desktop.
Cypress test.yml snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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