Skip to content

ci(action): update actions/setup-node action to v4 #1181

ci(action): update actions/setup-node action to v4

ci(action): update actions/setup-node action to v4 #1181

Workflow file for this run

name: Test
"on":
push:
branches:
- master
- renovate/**
pull_request:
types:
- opened
- synchronize
jobs:
test_matrix:
strategy:
matrix:
node-version:
- 18.17.0
- 20.6.1
- 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
cache: npm
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Ensure dependencies are compatible with the version of node
run: npx ls-engines
test:
runs-on: ubuntu-latest
needs: test_matrix
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run lint
- run: npx lockfile-lint --path package-lock.json