tests.yml
This file
Path
.github/workflows/tests.yml
31 lines · 763 bytes · YAML
Last changed by
ci: add 20.x to `node-version`abetomobefore adoptionfac9d8c
History of this fileTake it
1234567891011121314151617181920212223242526272829303132name: build
on: [push, pull_request]
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: [14.x, 16.x, 18.x, 20.x] os: [ubuntu-latest, windows-latest, macos-latest]
steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 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 lint run: npm run lint