Skip to content

feat(process-editor): checkered background (#11833) #507

feat(process-editor): checkered background (#11833)

feat(process-editor): checkered background (#11833) #507

Workflow file for this run

name: Cypress Tests
on:
push:
branches:
- master
paths:
- 'frontend/**'
- '.github/workflows/cypress.yml'
jobs:
cypress-run:
runs-on: ubuntu-latest
# Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
# Also see warning here https://github.com/cypress-io/github-action#parallel
strategy:
fail-fast: false # https://github.com/cypress-io/github-action/issues/48
matrix:
containers: [1] # No parallelization
steps:
- name: 'Checking Out Code'
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
cache: 'yarn'
- name: Get yarn cache directory path
working-directory: frontend
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: 'Installing Dependencies'
working-directory: frontend/testing/cypress
run: yarn install --immutable --inline-builds
env:
YARN_ENABLE_GLOBAL_CACHE: 'false'
YARN_NM_MODE: 'hardlinks-local'
HUSKY: '0'
- name: Attempt to wait for deploy to environment (10 minutes sleep)
run: sleep 10m
shell: bash
- name: Cypress run
uses: cypress-io/github-action@v5
with:
install: false
working-directory: frontend/testing/cypress
env: environment=dev,autoTestUserPwd=${{ secrets.AUTO_TEST_USER_PWD }},accessToken=${{ secrets.AUTO_TEST_USER_TOKEN_DEV }}
spec: src/integration/studio/*.js
record: true
parallel: false
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Store artifacts
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: frontend/testing/cypress/screenshots