Add cypress server-function test #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 project dependencies | |
run: cd ./tests/server-function/ && pnpm i --ignore-workspace | |
- name: Test server-function | |
run: cd ./tests/server-function/ && pnpm run test | |
# - name: Install dependencies | |
# uses: cypress-io/github-action@v6 | |
# with: | |
# working-directory: tests/server-function | |
# runTests: false | |
# - name: Cypress test | |
# uses: cypress-io/github-action@v6 | |
# with: | |
# install: false | |
# working-directory: tests/server-function | |
# start: pnpm run cy:run | |
# browser: ${{ matrix.browser }} | |