Skip to content

Fix demos, harden E2E tests, fix route group rendering, add CI E2E #63

Fix demos, harden E2E tests, fix route group rendering, add CI E2E

Fix demos, harden E2E tests, fix route group rendering, add CI E2E #63

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build library
run: npm run build:lib
- name: Run type check
run: npm run type-check
- name: Run tests
run: npm run test:run
e2e:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run E2E tests
run: npx playwright test e2e/
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}