Skip to content

Add cypress server-function test #31

Add cypress server-function test

Add cypress server-function test #31

Workflow file for this run

name: ci
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
e2e-tests:
name: "E2E tests using ${{ matrix.browser }}"
strategy:
fail-fast: false
matrix:
browser: [chrome, firefox]
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install project dependencies
run: pnpm i
- name: Install project dependencies
run: pnpm run build
- name: Install dependencies
uses: cypress-io/github-action@v6
with:
working-directory: .
runTests: false
- name: Cypress test
uses: cypress-io/github-action@v6
with:
install: false
working-directory: tests/server-function
start: pnpm run dev
browser: ${{ matrix.browser }}