Skip to content

Instantly share code, notes, and snippets.

@dbredvick
Created May 13, 2022 21:36
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 dbredvick/e878891ee6ddccfa9ed1d35f1d61118a to your computer and use it in GitHub Desktop.
Save dbredvick/e878891ee6ddccfa9ed1d35f1d61118a to your computer and use it in GitHub Desktop.
github action
name: End-to-end tests
on: [deployment_status]
jobs:
cypress-run:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3]
steps:
- name: Checkout
uses: actions/checkout@v2
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v2
with:
record: true
parallel: true
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
env:
CYPRESS_BASE_URL: ${{ github.event.deployment_status.target_url }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment