From 23833b7248d68ae0575ad258f4302956942512e2 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Thu, 24 Jun 2021 00:27:08 +0100 Subject: [PATCH] add circleci config --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..68c8584 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,31 @@ +version: 2.1 + +jobs: + test: + docker: + - image: cimg/node:15.1 + steps: + - checkout + - restore_cache: + # See the configuration reference documentation for more details on using restore_cache and save_cache steps + # https://circleci.com/docs/2.0/configuration-reference/?section=reference#save_cache + keys: + - node-deps-v1-{{ .Branch }}-{{checksum "package-lock.json"}} + - run: + name: install packages + command: npm ci + - save_cache: + key: node-deps-v1-{{ .Branch }}-{{checksum "package-lock.json"}} + paths: + - ~/.npm + - run: + name: Run Build + command: npm run build + - run: + name: Run Tests + command: npm run test + +workflows: + integrationtests: + jobs: + - test