Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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
Loading