chore(pkg-manager): fixem tests #5360
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: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node_version: [20, 22] | |
os: [ubuntu-latest, windows-latest] | |
name: Node.js v${{ matrix.node_version }} / ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Use Node.js ${{ matrix.node_version }} | |
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Upgrade npm | |
run: npm i -g npm | |
- name: Install dependencies | |
uses: bahmutov/npm-install@2509f13e8485d88340a789a3f7ca11aaac47c9fc # v1.8.36 | |
with: | |
install-command: npm ci --foreground-scripts | |
- name: Test Suite | |
run: npm run test:ci | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Install dependencies | |
uses: bahmutov/npm-install@2509f13e8485d88340a789a3f7ca11aaac47c9fc # v1.8.36 | |
with: | |
install-command: npm ci --foreground-scripts | |
- name: Lint | |
run: npm run lint |