forked from JAGFx/ets2-dashboard-skin
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 841 Bytes
/
eslint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: CodeStyle
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
analyze:
name: Eslint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run linter
run: npm run lint