Skip to content

Run the vitest suite in CI #1

Run the vitest suite in CI

Run the vitest suite in CI #1

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@v7.1.0
with:
node-version: 22
cache: npm
# package-lock.json is written by npm 11, and the npm 10 bundled with
# Node 22 rejects it in `npm ci` (see the Dockerfile).
- name: Install npm 11
run: npm install -g npm@11
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test