File tree Expand file tree Collapse file tree 2 files changed +52
-5
lines changed Expand file tree Collapse file tree 2 files changed +52
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Node CI
1
+ name : Daily project check
2
2
3
- on :
4
- push :
5
- pull_request :
3
+ on :
6
4
schedule :
7
5
# build runs everyday at 6AM UTC
8
6
- cron : ' 0 6 * * *'
39
37
40
38
steps :
41
39
- uses : actions/checkout@v1
42
- - uses : actions/setup-node@v1
40
+ - name : Use Node.js 12
41
+ uses : actions/setup-node@v1
43
42
with :
44
43
node-version : 12
45
44
- name : e2e chrome test
Original file line number Diff line number Diff line change
1
+ name : Project check
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ build :
9
+
10
+ runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ node-version : [8.x, 10.x, 12.x]
15
+ os : [ubuntu-latest, windows-latest, macOS-latest]
16
+
17
+ steps :
18
+ - uses : actions/checkout@v1
19
+ - name : Use Node.js ${{ matrix.node-version }}
20
+ uses : actions/setup-node@v1
21
+ with :
22
+ node-version : ${{ matrix.node-version }}
23
+ - name : project check
24
+ run : |
25
+ npm i
26
+ npm run clearCache
27
+ npm run build
28
+ npm run lint
29
+ npm run test:unit
30
+ env :
31
+ CI : true
32
+
33
+ e2e-chrome :
34
+
35
+ runs-on : windows-latest
36
+
37
+ steps :
38
+ - uses : actions/checkout@v1
39
+ - name : Use Node.js 12
40
+ uses : actions/setup-node@v1
41
+ with :
42
+ node-version : 12
43
+ - name : e2e chrome test
44
+ run : |
45
+ npm i
46
+ npm run test:e2e
47
+ env :
48
+ BROWSER : chrome
You can’t perform that action at this time.
0 commit comments