Raise minimum Node.js version to 22 and use withResolvers #1045
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |