chore(deps): update actions/setup-node action to v4 #3949
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: Node CI | |
on: [pull_request, push] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Node.js v${{ matrix.node_version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [14, 16, 18] | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install latest npm | |
run: npm install -g npm | |
- name: Install dependencies | |
uses: bahmutov/npm-install@cb39a46f27f14697fec763d60fb23ad347e2befa # tag=v1 | |
with: | |
useRollingCache: true | |
- name: test | |
run: npm test |