Skip to content

Cypress tests

Cypress tests #504

Workflow file for this run

name: Cypress tests
on:
push:
branches:
- deployed
- cypress-setup
schedule:
- cron: 20 4 */2 * *
jobs:
cypress-run:
name: Cypress run
runs-on: ubuntu-latest
strategy:
matrix:
browser: [chrome, firefox]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cypress run
uses: cypress-io/github-action@v4
with:
build: npm run build
start: npm start
spec: cypress/**/*.ts
record: true
browser: ${{ matrix.browser }}
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}