diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..653d9635c --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,39 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs +jobs: + build: + docker: + - image: circleci/node:13.8.0 + steps: + - checkout + - run: npm i + - run: npm run lint + + test: + docker: + - image: circleci/node:13.8.0 + steps: + - checkout + - run: npm i + - run: npm run test + + analyze: + docker: + - image: circleci/node:13.8.0 + steps: + - checkout + - run: npm audit +workflows: + ci_demo_wf: + jobs: + - build + - test: + requires: + - build + - analyze: + requires: + - test