File tree Expand file tree Collapse file tree 1 file changed +72
-1
lines changed Expand file tree Collapse file tree 1 file changed +72
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : " Test"
2
2
on :
3
+ pull_request :
3
4
push :
4
5
branches :
5
6
- master
7
+ - ' v*'
8
+ env :
9
+ node_version : " 12.x"
6
10
7
11
jobs :
12
+ build : # make sure build/ci work properly
13
+ name : Build
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v1
17
+ - name : Set up Node.js
18
+ uses : actions/setup-node@v1
19
+ with :
20
+ node-version : ${{ env.node_version }}
21
+
22
+ - name : npm install
23
+ run : npm install
24
+
25
+ - name : npm build
26
+ run : npm build
27
+
28
+ - name : npm run pack
29
+ run : npm run pack
30
+
31
+ audit :
32
+ name : Audit
33
+ runs-on : ubuntu-latest
34
+ steps :
35
+ - uses : actions/checkout@v2
36
+
37
+ - name : Set up Node.js
38
+ uses : actions/setup-node@v1
39
+ with :
40
+ node-version : ${{ env.node_version }}
41
+
42
+ - name : npm audit
43
+ run : npm audit --audit-level=critical
44
+
45
+ lint :
46
+ name : Lint
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - uses : actions/checkout@v2
50
+
51
+ - name : Set up Node.js
52
+ uses : actions/setup-node@v1
53
+ with :
54
+ node-version : ${{ env.node_version }}
55
+
56
+ - name : npm install
57
+ run : npm install
58
+
59
+ - name : npm lint
60
+ run : npm lint
61
+
8
62
test :
9
63
name : Test
10
64
runs-on : ubuntu-latest
11
65
steps :
12
- - uses : actions/checkout@v1
66
+ - uses : actions/checkout@v2
67
+
68
+ - name : Set up Node.js
69
+ uses : actions/setup-node@v1
70
+ with :
71
+ node-version : ${{ env.node_version }}
72
+
73
+ - name : npm install
74
+ run : npm install
75
+
76
+ - name : npm test
77
+ run : npm test
78
+
79
+ # test:
80
+ # name: Test
81
+ # runs-on: ubuntu-latest
82
+ # steps:
83
+ # - uses: actions/checkout@v1
13
84
# - name: CodeDeploy
14
85
# uses: ./
15
86
# with:
You can’t perform that action at this time.
0 commit comments