chore: fix CI to use newer npm on node 14 #609
Workflow file for this run
This file contains 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: | |
jobs: | |
test-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [14, 16, 18, 20] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: node --version | |
# Upgrade npm to newest supported version so it understands lockfile v3 | |
- run: npm install -g npm@9.9.3 | |
if: matrix.node == 14 | |
- run: npm install | |
- run: npm test | |
- name: coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
name: actions linux ${{ matrix.node }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 14 | |
- run: npm install | |
- run: npm run lint |