forked from DCS-Skunkworks/Bort
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 841 Bytes
/
validate.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
33
34
35
36
37
38
39
40
41
42
43
44
name: Validate
on:
push:
pull_request:
merge_group:
jobs:
eslint:
runs-on: ubuntu-latest
name: eslint
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci # install dependencies
- name: Run eslint
run: npm run lint # run eslint
prettier:
runs-on: ubuntu-latest
name: prettier
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci # install dependencies
- name: Run prettier
run: npm run prettier # run prettier