Skip to content

Commit

Permalink
chore(root): adds snyk integration
Browse files Browse the repository at this point in the history
updates scripts & ci for snyk
  • Loading branch information
rockchalkwushock committed Apr 14, 2018
1 parent ebf4c59 commit dc5aa0f
Show file tree
Hide file tree
Showing 5 changed files with 762 additions and 27 deletions.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ jobs:
- attach_workspace:
at: ~/microauth-vkontakte
- run: yarn start validate
check_dependencies:
docker:
- image: 'circleci/node:latest'
working_directory: ~/microauth-vkontakte
steps:
- checkout
- attach_workspace:
at: ~/microauth-vkontakte
- run: yarn start validate.dependencies
test_node_7:
docker:
- image: 'circleci/node:7'
Expand Down Expand Up @@ -78,18 +87,24 @@ workflows:
- validate_code:
requires:
- checkout_code
- check_dependencies:
requires:
- checkout_code
- test_node_7:
requires:
- checkout_code
- validate_code
- check_dependencies
- test_node_8:
requires:
- checkout_code
- validate_code
- check_dependencies
- test_latest_and_report:
requires:
- checkout_code
- validate_code
- check_dependencies
- release:
requires:
- test_node_7
Expand Down
4 changes: 4 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.10.2
ignore: {}
patch: {}
1 change: 1 addition & 0 deletions package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
},
validate: {
default: series.nps('lint.fix'),
dependencies: 'snyk test',
withCoverage: series.nps('validate', 'test.coverage')
}
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"nps": "^5.9.0",
"nps-utils": "^1.5.0",
"prettier": "^1.12.0",
"semantic-release": "^15.1.7"
"semantic-release": "^15.1.7",
"snyk": "^1.71.0"
}
}
Loading

0 comments on commit dc5aa0f

Please sign in to comment.