Skip to content

Add CI workflow to lint and build on PRs #4

Add CI workflow to lint and build on PRs

Add CI workflow to lint and build on PRs #4

Workflow file for this run

name: CI
on:
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Install Playwright browsers
run: npx playwright install chromium --with-deps
- name: Smoke test
run: npm test