Skip to content

fix: Install pnpm, since Github Actions sees our pnpm-lock.yaml and a… #5

fix: Install pnpm, since Github Actions sees our pnpm-lock.yaml and a…

fix: Install pnpm, since Github Actions sees our pnpm-lock.yaml and a… #5

Workflow file for this run

name: Cypress Tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
run: npm install -g pnpm@9
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('examples/basic-pnpm/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Cypress run
uses: cypress-io/github-action@v6
with:
working-directory: lawnotation-ui
build: npm run build
start: npm run preview, npx supabase start
wait-on: "http://localhost:3000, http://localhost:54323"
wait-on-timeout: 120