Skip to content

Merge pull request #177 from rickbairstow/dependabot/npm_and_yarn/tab… #360

Merge pull request #177 from rickbairstow/dependabot/npm_and_yarn/tab…

Merge pull request #177 from rickbairstow/dependabot/npm_and_yarn/tab… #360

Workflow file for this run

# .github/workflows/eslint.yml
name: 'ESLint Check'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Cache Node Modules
uses: actions/cache@v3
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint