Skip to content

Commit

Permalink
feat(Security): Run npm audit in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Oct 20, 2018
1 parent 1e052c2 commit e383694
Show file tree
Hide file tree
Showing 4 changed files with 5,928 additions and 6,770 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ before_install:
# Prepare node and npm
- nvm install $NODE_VERSION && nvm use $NODE_VERSION
- npm install -g npm@$NPM_VERSION
- npm install

before_script:
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"

script:
- npm run build
- npm audit
- npm test

after_success:
Expand Down
4 changes: 4 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ node('nodejs') {
sh "npm install && npm run build"
}

stage('Security Checks') {
sh "npm run audit"
}

stage('Test') {
sh "npm run test"
// junit '*/target/tests.js.xml'
Expand Down
Loading

0 comments on commit e383694

Please sign in to comment.