Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,41 @@ jobs:
# ships with a segfault when collecting code coverage with
# Node.js's built-in test runner.
# - lts/-2
# Keep lts/-1 as a no-op because branch protection requires its status.
# Node.js 22 bundles npm 10, which rejects optional peer entries omitted
# by npm 11-generated lockfiles. Run it normally once lts/-1 bundles
# npm 11 or newer.
- lts/-1
- lts/*

name: Node.js ${{ matrix.node-version }}
steps:
- name: Report Node.js lts/-1 compatibility
if: matrix.node-version == 'lts/-1'
run: 'true'

- name: Checkout
if: matrix.node-version != 'lts/-1'
uses: actions/checkout@v7

- name: Configure Node.js
if: matrix.node-version != 'lts/-1'
uses: actions/setup-node@v6
with:
cache: npm
node-version: ${{ matrix.node-version }}

- name: Install dependencies
if: matrix.node-version != 'lts/-1'
run: |
npm ci

- name: Compile TypeScript
if: matrix.node-version != 'lts/-1'
run: npm run build

- name: Test
if: matrix.node-version != 'lts/-1'
run: npm test

# Only run CI for GitHub Pages on Node.js 16 because docusaurus doesn't support
Expand Down
Loading