-
Notifications
You must be signed in to change notification settings - Fork 84
63 lines (47 loc) · 1.6 KB
/
pull_request.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
52
53
54
55
56
57
58
59
60
61
62
63
name: running unit tests on pull request
run-name: workflow ${{github.run_number}} of branch ${{github.head_ref}}
on: [pull_request]
jobs:
Frontend-Tests:
name: Frontend Tests
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- name: 🔎 Check out repository code ...
uses: actions/checkout@v4
- name: ⏳ Setting Up Node ...
uses: actions/setup-node@v4
with:
node-version: 18
- name: ⏳ setting environment ...
run: npm i
- name: 🖥 typecheck Widget ...
run: cd widget && npm run typecheck
- name: 🖥 typecheck Frontend ...
run: cd frontend && npm run typecheck
- name: 🖋️ ESLint checks for widget ...
run: cd widget && npm run lint
- name: 🖋️ ESLint checks for Frontend ...
run: cd frontend && npm run lint
- name: 🛠️ build Widget ...
run: cd widget && npm run build
- name: 🛠️ build Frontend ...
run: cd frontend && npm run build
API-Tests:
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- name: 🔎 Check out repository code ...
uses: actions/checkout@v4
- name: ⏳ Setting Up Node ...
uses: actions/setup-node@v4
with:
node-version: 18
- name: ⏳ setting environment for API ...
run: cd api && npm i
- name: 🖥 typecheck API ...
run: cd api && npm run typecheck
- name: 🖋️ ESLint checks for API ...
run: cd api && npm run lint
- name: 🔬 running unit tests for API ...
run: cd api && npm run test