Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Merged

Snyk #93

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
defaults: &defaults
working_directory: ~/analytics.js-core
docker:
- image: circleci/node:8-browsers

version: 2
jobs:
test:
docker:
- image: circleci/node:8-browsers
<<: *defaults
steps:
- checkout
- run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
Expand All @@ -17,8 +21,7 @@ jobs:
- store_test_results:
path: junit-reports
coverage:
docker:
- image: circleci/node:8-browsers
<<: *defaults
steps:
- checkout
- run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
Expand All @@ -33,6 +36,17 @@ jobs:
- store_test_results:
path: junit-reports
- run: yarn run codecov
- persist_to_workspace:
root: .
paths:
- .
snyk:
<<: *defaults
steps:
- checkout
- attach_workspace: { at: . }
- run: yarn run snyk test --severity-threshold=high
- run: yarn run snyk monitor
publish:
docker:
- image: circleci/node:8-browsers
Expand All @@ -52,6 +66,10 @@ workflows:
filters:
tags:
only: /.*/
- snyk:
context: snyk
requires:
- coverage
- deploy:
requires:
- test
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"prettier-eslint-cli": "^4.7.1",
"proclaim": "^3.4.1",
"sinon": "^1.7.3",
"snyk": "^1.83.0",
"watchify": "^3.7.0"
}
}
Loading