Skip to content

Bump the npm_and_yarn group across 2 directories with 1 update #241

Bump the npm_and_yarn group across 2 directories with 1 update

Bump the npm_and_yarn group across 2 directories with 1 update #241

Workflow file for this run

name: Cypress Tests
on:
pull_request:
branches:
- main
- dev
paths:
- 'platform/**'
push:
branches:
- main
paths:
- 'platform/**'
jobs:
e2e:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
browser: [chrome]
node: [18, 20, 21]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
run: npm install -g pnpm
- name: Write to .env
run: echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}\NEXT_PUBLIC_NO_TELEMETRY=true\nNEXT_PUBLIC_DEFAULT_REPO_PATH=$(pwd)\n" >> platform/.env
- name: Cypress run
if: ${{ !(matrix.os == 'ubuntu-latest' && matrix.browser == 'safari') }}
uses: cypress-io/github-action@v6
with:
build: pnpm run build
start: pnpm start
browser: ${{ matrix.browser }}
wait-on: 'http://localhost:4000' # Waits for above
record: true
working-directory: platform
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}