test(*): add cypress and e2e tests

This commit is contained in:
Mathieu Schimmerling
2024-03-05 17:24:20 +01:00
parent d2b82d1d37
commit 002704cd25
11 changed files with 3112 additions and 4832 deletions

18
.github/workflows/e2e.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: End-to-end tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Install npm dependencies, cache them correctly
# and run all Cypress tests
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: pnpm build
start: pnpm preview --port 5173
browser: chrome

View File

@@ -5,9 +5,7 @@ name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
NODE_OPTIONS: --max_old_space_size=4096
@@ -28,7 +26,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Setup PNPM
# uses: pnpm/action-setup@35ab4267a1a21c8e8cb1c087cf1642e891ff57bd
uses: pnpm/action-setup@v2.2.1
- run: pnpm install --frozen-lockfile
- run: pnpm run lint