2020-09-05 12:43:05 +00:00
|
|
|
name: Linter
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linter:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-09 07:58:57 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-25 08:47:04 +00:00
|
|
|
- name: Use Node.js 14.x
|
2022-10-09 07:58:57 +00:00
|
|
|
uses: actions/setup-node@v3
|
2020-09-05 12:43:05 +00:00
|
|
|
with:
|
2021-04-25 08:47:04 +00:00
|
|
|
node-version: '14.x'
|
2020-09-05 12:43:05 +00:00
|
|
|
- name: Cache NPM dependencies
|
2022-10-09 07:58:57 +00:00
|
|
|
uses: actions/cache@v3
|
2020-09-05 12:43:05 +00:00
|
|
|
with:
|
|
|
|
path: node_modules
|
|
|
|
key: ${{ runner.os }}-npm-cache
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-npm-cache
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Lint
|
|
|
|
run: npm run lint
|