File tree Expand file tree Collapse file tree 1 file changed +38
-7
lines changed Expand file tree Collapse file tree 1 file changed +38
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Lint
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ branches :
6
+ - " *"
7
+ pull_request :
8
+ branches :
9
+ - " *"
10
+
11
+ env :
12
+ NODE_VERSION : 20
4
13
5
14
jobs :
6
- lint :
7
- name : Lint
15
+ question-service :
16
+ runs-on : ubuntu-latest
17
+ name : Question service
18
+ steps :
19
+ - name : Checkout code
20
+ uses : actions/checkout@v4
21
+ - name : Setting node version
22
+ uses : actions/setup-node@v4
23
+ with :
24
+ node-version : ${{ env.NODE_VERSION }}
25
+ - name : Install dependences
26
+ working-directory : ./backend/question-service
27
+ run : npm install
28
+ - name : Run eslint
29
+ working-directory : ./backend/question-service
30
+ run : npm run lint
31
+ frontend :
8
32
runs-on : ubuntu-latest
33
+ name : Frontend
9
34
steps :
10
35
- name : Checkout code
11
36
uses : actions/checkout@v4
12
- - name : Lint question service
13
- run : cd backend/question-service && npm install && npm run lint
14
- - name : Lint frontend
15
- run : cd frontend && npm install && npm run lint
37
+ - name : Setting node version
38
+ uses : actions/setup-node@v4
39
+ with :
40
+ node-version : ${{ env.NODE_VERSION }}
41
+ - name : Install dependencies
42
+ working-directory : ./frontend
43
+ run : npm install
44
+ - name : Run eslint
45
+ working-directory : ./frontend
46
+ run : npm run lint
You can’t perform that action at this time.
0 commit comments