Skip to content

Commit 4019179

Browse files
committed
[Tests] add posttest using npx aud to run npm audit without a lockfile
1 parent 97154a6 commit 4019179

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ matrix:
3636
include:
3737
- node_js: "lts/*"
3838
env: PRETEST=true
39+
- node_js: "lts/*"
40+
env: POSTTEST=true
3941
- node_js: "4"
4042
env: COVERAGE=true
4143
- node_js: "12.9"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"pretest": "npm run --silent readme && npm run --silent lint",
5050
"test": "npm run --silent coverage",
5151
"tests-only": "node test",
52+
"posttest": "npx aud",
5253
"readme": "evalmd README.md",
5354
"postlint": "eclint check * lib/* test/*",
5455
"lint": "eslint lib/*.js test/*.js",

0 commit comments

Comments
 (0)