Skip to content

Raise minimum Node.js version to 22 and use withResolvers #1045

Raise minimum Node.js version to 22 and use withResolvers

Raise minimum Node.js version to 22 and use withResolvers #1045

Workflow file for this run

name: spec-generator tests
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6.1.0
with:
node-version: ${{ matrix.node-version }}
- name: Install bikeshed
run: pipx install bikeshed && bikeshed update
- run: npm install
# See https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- run: npx respec2html -e --timeout 30 --src "https://w3c.github.io/spec-generator/respec.html"
- run: npm test