mirror of https://github.com/curbengh/hexo-yam
25 lines
575 B
YAML
25 lines
575 B
YAML
name: Linter
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
linter:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v2.1.5
|
|
with:
|
|
node-version: '14.x'
|
|
- name: Cache NPM dependencies
|
|
uses: actions/cache@v2.1.6
|
|
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
|