Skip to content

Release v2.25.1 (#4104) #2604

Release v2.25.1 (#4104)

Release v2.25.1 (#4104) #2604

Workflow file for this run

name: Cypress Test
# Controls when the action will run.
on:
# Triggers unit test on push events for the main branch to collect unit test coverage
push:
branches: [main]
workflow_dispatch:
jobs:
e2e-test:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Pnpm
run: corepack enable
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.ref_name }}-
turbo-
- name: Install Dependencies
run: pnpm install --ignore-scripts --frozen-lockfile
- name: Install cypress
run: npx cypress install
- name: Prepare
if: ${{steps.docs-change.outputs.DOCS_CHANGE != 'docs only change'}}
run: pnpm run prepare
- name: Run cypress test
uses: cypress-io/github-action@v4
with:
install: false
start: sh scripts/dev-project.sh
wait-on: 'http://localhost:3001,http://localhost:3002,http://localhost:3003/index.js'
wait-on-timeout: 600
working-directory: tests
spec: cypress/e2e/**/*.cy.js
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}