2020-09-05 12:43:05 +00:00
|
|
|
name: Linter
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linter:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-05-04 02:35:02 +00:00
|
|
|
- uses: actions/checkout@v3.0.2
|
2021-04-25 08:47:04 +00:00
|
|
|
- name: Use Node.js 14.x
|
2021-10-16 09:29:53 +00:00
|
|
|
uses: actions/setup-node@v2.4.1
|
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
|
2021-05-28 05:22:05 +00:00
|
|
|
uses: actions/cache@v2.1.6
|
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
|