-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (49 loc) · 1.44 KB
/
pullRequestChecks.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
45
46
47
48
49
50
51
name: CodeChecks
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Get Codebase
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
- name: Install Modules
run: npm ci
- name: Run ESLint
run: npm run lint:check
format:
runs-on: ubuntu-22.04
steps:
- name: Get Codebase
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
- name: Install Modules
run: npm ci
- name: Run Prettier Check
run: npm run format:check
test:
runs-on: ubuntu-22.04
steps:
- name: Get Codebase
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
- name: Install Modules
run: npm ci
- name: Build limble-tree
run: npm run ng build -- limble-tree
- name: Test limble-tree
run: npm run ng test -- limble-tree --no-watch --no-progress --browsers=ChromeHeadless
- name: Test sandbox
run: npm run ng test -- sandbox --no-watch --no-progress --browsers=ChromeHeadless