chore: modernize CI, runtime, security baseline (2026-05-21) #58
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| # Least-privilege: this workflow only reads the repo and runs tests. | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| # Node 20 EOL'd 2026-04-30. 22 is the current Maintenance LTS | |
| # (EOL 2027-04-30); 24 is Active LTS. We pin to the LTS line we | |
| # test against. | |
| node-version: '22' | |
| # tests/ uses the node:test runner with zero deps — no install needed. | |
| - name: Syntax check | |
| run: npm run check | |
| - name: Run tests | |
| run: npm test |