2020-09-05 12:43:05 +00:00
|
|
|
name: Linter
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linter:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js 12.x
|
2020-10-02 06:11:47 +00:00
|
|
|
uses: actions/setup-node@v2.1.2
|
2020-09-05 12:43:05 +00:00
|
|
|
with:
|
|
|
|
node-version: '12.x'
|
|
|
|
- name: Cache NPM dependencies
|
|
|
|
uses: actions/cache@v2
|
|
|
|
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
|