Skip to content

Merge pull request #31 from pferreirafabricio/dependabot/npm_and_yarn… #45

Merge pull request #31 from pferreirafabricio/dependabot/npm_and_yarn…

Merge pull request #31 from pferreirafabricio/dependabot/npm_and_yarn… #45

Workflow file for this run

name: CI Linting
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/[email protected]
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Run ESLint
run: npm run lint