forked from DevExpress/devextreme-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (24 loc) · 784 Bytes
/
CI.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
32
name: Linter
on: [push, pull_request]
jobs:
lint:
name: Lint code base
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get sources
uses: actions/checkout@v2
- name: Restore npm cache
uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-modules
- name: Run npm install
run: npm install --no-audit --no-fund
- name: Run dotnet format install
run: |
dotnet new globaljson --sdk-version 5.0.0 --roll-forward latestFeature
dotnet tool install -g dotnet-format --version 5.1.225507
- name: Run lint
run: npm run lint