Skip to content

feat: add E2E integration tests with WorkOS emulator #541

feat: add E2E integration tests with WorkOS emulator

feat: add E2E integration tests with WorkOS emulator #541

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
pull_request: {}
defaults:
run:
shell: bash
jobs:
test:
name: Test Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [20, 22, 24]
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Format Check
run: pnpm run format:check
- name: Lint
run: pnpm run lint
- name: Typecheck
run: pnpm run typecheck
- name: Build
run: pnpm run build
- name: Test
run: pnpm run test
e2e:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 22
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm --filter e2e-tests exec playwright install chromium
- name: Build Library
run: pnpm run build
- name: Run E2E Tests
run: pnpm run test:e2e:next
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-test-results
path: e2e/test-results/
retention-days: 7