AdminLTE/.github/workflows/lint.yml

43 lines
923 B
YAML
Raw Permalink Normal View History

2020-05-31 13:58:08 +02:00
name: Lint
on:
2020-06-01 20:32:29 +02:00
push:
branches:
- master
2021-03-23 23:40:17 +01:00
- v4-dev
2020-05-31 13:58:08 +02:00
pull_request:
2020-06-01 20:32:29 +02:00
branches:
- "**"
2020-05-31 13:58:08 +02:00
env:
FORCE_COLOR: 2
NODE: 16.x
2020-05-31 13:58:08 +02:00
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
2020-05-31 13:58:08 +02:00
with:
node-version: "${{ env.NODE }}"
- name: Set up npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}}
2020-05-31 13:58:08 +02:00
restore-keys: |
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-node-v${{ env.NODE }}-
2020-05-31 13:58:08 +02:00
- name: Install npm dependencies
run: npm ci
- name: Run lint
run: npm run lint