Denys Konovalov
ac9c542672
Some checks failed
Build / build (push) Failing after 1m31s
Build / lint (push) Failing after 6s
Build / test (push) Failing after 6s
Build / integration_tests (push) Failing after 6s
Cypress Tests / cypress-run (1) (push) Failing after 38s
Cypress Tests / cypress-run (2) (push) Failing after 8s
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
name: Cypress Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['main', 'next']
|
|
pull_request:
|
|
branches: ['main', 'next']
|
|
|
|
jobs:
|
|
cypress-run:
|
|
runs-on: act-runner-user
|
|
|
|
strategy:
|
|
fail-fast: false # https://github.com/cypress-io/github-action/issues/48
|
|
matrix:
|
|
containers: [1, 2] # Uses 2 parallel instances
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: https://github.com/actions/setup-node@v3
|
|
with:
|
|
cache: yarn
|
|
cache-dependency-path: |
|
|
yarn.lock
|
|
packages/app/yarn.lock
|
|
packages/core/yarn.lock
|
|
packages/docs/yarn.lock
|
|
node-version: 18
|
|
|
|
- name: Install
|
|
run: |
|
|
yarn install --frozen-lockfile
|
|
|
|
- name: Run Cypress Tests
|
|
uses: https://github.com/cypress-io/github-action@v6
|
|
with:
|
|
start: yarn dev
|
|
wait-on: 'http://localhost:8080'
|
|
record: true # Records to Cypress Cloud
|
|
parallel: true # Runs test in parallel using settings above
|
|
env:
|
|
# For recording and parallelization to work you must set your CYPRESS_RECORD_KEY
|
|
# in GitHub repo → Settings → Secrets → Actions
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
# Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
|
|
GITHUB_TOKEN: ${{ secrets.CYPRESS_GITHUB_TOKEN }}
|