File tree 1 file changed +22
-2
lines changed
1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,37 @@ language: node_js
2
2
branches :
3
3
except :
4
4
- /^greenkeeper.*/
5
+
6
+ stages :
7
+ - name : test
8
+ if : type IN (push, pull_request, api)
9
+ - name : cron
10
+ if : type IN (cron, api)
11
+
5
12
# Test against Long Term Support (LTS) releases in a "current", "active", and
6
13
# "maintenance" status: https://nodejs.org/en/about/releases/
7
14
node_js :
8
15
- 14
9
16
- 12
10
17
- 10
11
18
install :
12
- - npm install -g codecov
13
- - npm install
19
+ - npm ci # install from package-lock.json
14
20
script :
15
21
- npm run lint
16
22
- travis_retry npm test
17
23
after_success :
24
+ - npm install -g codecov
18
25
- npm run codecov
26
+
27
+ include :
28
+ jobs :
29
+ - name : deps:npm-audit
30
+ stage : cron
31
+ install :
32
+ - npm ci --production
33
+ script :
34
+ - npm audit
35
+ after_success :
36
+ - echo "package-lock.json is considered secure according to 'npm audit'."
37
+ after_failure :
38
+ - echo "package-lock.json should be updated with 'npm audit fix'."
You can’t perform that action at this time.
0 commit comments