Skip to content

ci: update workflows to Node 20, use npm ci for reproducibility #218

ci: update workflows to Node 20, use npm ci for reproducibility

ci: update workflows to Node 20, use npm ci for reproducibility #218

name: Static analysis - Check format and run linter
on:
push:
paths:
- src/**
pull_request:
types:
- opened
- synchronize
jobs:
format:
runs-on: ubuntu-latest
# Exclude in-repo PRs from running this job
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
steps:
- name: Clone repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup Node.js 20
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 20.x
cache: npm
- name: Install npm development dependencies
run: npm ci
- name: Check format
run: npm run format-check
- name: Run ESLint
run: npm run lint