Skip to content

fix: resolve CI build and test failures #2

fix: resolve CI build and test failures

fix: resolve CI build and test failures #2

Workflow file for this run

name: CI - docs
on:
push:
branches: [main]
paths: ['docs/**']
pull_request:
branches: [main]
paths: ['docs/**']
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- name: Setup 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: Type check
run: npm run typecheck --if-present
- name: Lint
run: npm run lint --if-present
- name: Build
run: npm run build
- name: Run tests
run: npm test --if-present