Skip to content

ci(action): update actions/setup-node digest to 1a4442c #185

ci(action): update actions/setup-node digest to 1a4442c

ci(action): update actions/setup-node digest to 1a4442c #185

Workflow file for this run

name: Lint & Test
on:
workflow_call:
pull_request:
branches:
- main
- beta
- '+([0-9])?(.{+([0-9]),x}).x'
jobs:
lint-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [16.x, 18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout project
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install packages
run: npm ci
- name: Build project
run: npm run build
- name: Check codestyle compliance
run: npm run lint
- name: Run tests
run: npm run test