Skip to content

Commit

Permalink
feat: snyk circle-ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
sandor-trombitas committed Jul 11, 2024
1 parent f8cf69d commit d16aefa
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,21 @@
version: 2.1
orbs:
node: circleci/node@5
snyk: snyk/[email protected]
jobs:
snyk_scan:
docker:
- image: cimg/node:lts
steps:
- checkout
- run: npm ci
- snyk/install
- run:
command: snyk version
name: Which version of snyk is installed
- run:
command: snyk code test
name: Run code scan
test-node:
# Install node dependencies and run tests
executor: node/default
Expand Down Expand Up @@ -52,6 +66,9 @@ workflows:
build-and-test:
jobs:
- test-node
- snyk_scan:
requires:
- test-node
- build-node:
requires:
- test-node
Expand Down

0 comments on commit d16aefa

Please sign in to comment.