-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 824 Bytes
/
code-style.yml
File metadata and controls
37 lines (35 loc) · 824 Bytes
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
33
34
35
36
37
name: Code Style
on: [push]
jobs:
lint:
runs-on: ${{matrix.os}}
strategy:
matrix:
node: [12, 14, 16]
os: [ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Installing
run: npm ci
- name: Linting
run: npm run lint
format:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [12, 14, 16]
os: [windows-latest, macos-latest, ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Installing
run: npm ci
- name: Linting
run: npm run format:check