2018-09-27 06:46:45 +00:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "node" # latest stable Node.js release
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- "node_modules" # cache the modules for faster build
|
|
|
|
|
|
|
|
script:
|
2018-09-28 02:24:17 +00:00
|
|
|
- npm install -g snyk
|
2018-09-27 06:46:45 +00:00
|
|
|
- npm install # install node modules
|
|
|
|
- snyk auth $SNYK_TOKEN
|
2018-09-28 02:24:17 +00:00
|
|
|
- snyk test # Check node modules for vulnerability
|
2018-10-15 04:22:13 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master # Only build master branch
|