From 14c58cc7dbeaaaf211e244cf04d89d464ed2b88c Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 9 Jun 2021 20:31:41 +0100 Subject: [PATCH] Add circle-ci config file --- .circleci/config.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..50b7337 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,36 @@ + +version: 2.1 + +orbs: + node: circleci/node@4.1 + + +jobs: + build-and-test: + # A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/node + docker: + - image: cimg/node:15.1 + + steps: + # Checkout the code as the first step. + - checkout + - node/install-packages + - run: + name: Run lint + command: npm run lint + - run: + name: Run tests + command: npm test + # persist code coverage report + - store_artifacts: + path: coverage + + +workflows: + # Below is the definition of your workflow. + # Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the build-and-test job above. + # CircleCI will run this workflow on every commit. + # For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows + main: + jobs: + - build-and-test \ No newline at end of file