From d16aefa44d9eb0227e8a32ce7067fbdf3e4e2949 Mon Sep 17 00:00:00 2001 From: Trombitas Imre-Sandor Date: Thu, 11 Jul 2024 16:33:19 +0300 Subject: [PATCH] feat: snyk circle-ci test --- .circleci/config.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6f4b27a..ba05455 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,21 @@ version: 2.1 orbs: node: circleci/node@5 + snyk: snyk/snyk@2.1.0 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 @@ -52,6 +66,9 @@ workflows: build-and-test: jobs: - test-node + - snyk_scan: + requires: + - test-node - build-node: requires: - test-node