name: node on: push: branches: - master jobs: test: name: Test on node ${{ matrix.node }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: node: ['24.x', '22.x', '20.x'] os: [ubuntu-latest] steps: - uses: actions/checkout@v6 - name: Setup Node.js uses: actions/setup-node@v6 with: node-version: ${{ matrix.node }} # node 20/22 ship npm 10.x, whose peer resolution crashes with # "Cannot read properties of null (reading 'edgesOut')" on a cold install. # This repo has no committed lockfile, so CI always takes that path. # npm@11 (not @latest: npm 12 drops node 20) resolves the same tree fine. - run: npm install -g npm@11 - run: npm install - run: npm run lint - run: npm run build