Skip to content

Commit

Permalink
Chore: test-security in separete ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Oct 11, 2021
1 parent 14597ff commit 9559dbc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ jobs:
- run: *danger-pr
- run: *fossa-analize
- save_cache: *cache-modules
test-security:
<<: *defaults
steps:
- checkout
- restore_cache:
<<: *cache-defaults
- run: *security
- run:
name: Security audit for dev-dependencies
command: "npm audit"
test-coverage:
<<: *defaults
steps:
Expand Down Expand Up @@ -149,6 +159,9 @@ workflows:
jobs:
- install:
context: branches
- test-security:
requires:
- install
- test-package:
requires:
- install
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"scripts": {
"prepare": "babel src --out-dir ./lib --copy-files && husky install",
"coveralls": "cat ./reports/coverage/lcov.info | coveralls",
"test:security": "npm audit && npm run test:lock",
"test:security": "npm audit --production && npm run test:lock",
"test:lint": "eslint src bin tests --no-error-on-unmatched-pattern",
"test:mocha": "mocha --config .mocharc.json 'tests/**/*test.js'",
"test:mocha": "mocha --config .mocharc.json 'tests/**/*test.js'",
"test:package": "npt test -c .package-tester.json",
"test:coverage": "BUILD=0 MODE=test nyc mocha --config .mocharc.json 'tests/**/*test.js'",
"test:debt": "jscpd src --config .jscpd.json",
Expand Down

0 comments on commit 9559dbc

Please sign in to comment.