Skip to content

lint with cache

lint with cache #3278

Workflow file for this run

name: Lint
on: [push]
jobs:
eslint-reva-api:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/reva-api
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 22.x
cache: "npm"
- name: Cache node_modules
id: node_modules-cache
uses: actions/cache@v4
with:
path: |
./node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }}
- name: Installing dependencies
if: steps.node_modules-cache.outputs.cache-hit != 'true'
run: npm ci
- name: Running ESLint
run: npm run lint