tests.yml
This file
Path
.github/workflows/tests.yml
31 lines · 872 bytes · YAML
Last changed by
Pin GitHub actions with hash (#2521)John Geebefore adoptiona752ed9
History of this fileTake it
1234567891011121314151617181920212223242526272829303132name: build
on: [push, pull_request, workflow_dispatch]
permissions: contents: read
jobs: test: name: Test on node ${{ matrix.node-version }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: node-version: [22.x, 24.x, 26.x] os: [ubuntu-latest, windows-latest, macos-latest]
steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: cache: 'npm' node-version: ${{ matrix.node-version }} # Use separate run commands so command status handled correctly on Windows - name: npm install run: npm ci - name: npm test run: npm test - name: npm run check run: npm run check