Skip to content

Moved husky to dev dependencies #754

Moved husky to dev dependencies

Moved husky to dev dependencies #754

Workflow file for this run

name: ESLint
on:
push:
branches: main
pull_request:
branches: main
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: npm ci # instead of install to ensure consistency and determinism in CI/CD workflow
- name: Run ESLint
run: npm run lint
- name: Cache node modules and eslintrc.js
uses: actions/cache@v2
with:
path: |
node_modules
.eslintrc.js
# Modify cache keys for restoration
key: ${{ runner.os }}-eslintrc-${{ hashFiles('.eslintrc.js') }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-eslintrc- ${{ runner.os }}-node-modules-