Skip to content

Filter Materials Collections Automation #137

Filter Materials Collections Automation

Filter Materials Collections Automation #137

Workflow file for this run

name: CI with Migrate, Electron
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
cypress-tests:
runs-on: ubuntu-latest
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving the Dashboard hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run 3 copies of the current job in parallel
containers: [1, 2, 3]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run Cypress Integration Tests
uses: cypress-io/github-action@v4
continue-on-error: true
with:
record: true
spec: cypress/e2e/functional/**/*
# only do parallel if we have a record key
parallel: ${{ !!secrets.CYPRESS_RECORD_KEY }}
env:
CYPRESS_password: ${{ secrets.MIGRATE_PASSWORD }}
CYPRESS_testEnv: migrate
# 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 }}