Skip to content

FLUID-6782: linting #97

FLUID-6782: linting

FLUID-6782: linting #97

Workflow file for this run

name: Code linting
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Prepare git
run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- name: Use Node.js 20
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node.js dependencies
run: npm install
- name: Run code linter
run: npm run lint