From d3a35bfb64d37c9b108179db42c76c826b611d6a Mon Sep 17 00:00:00 2001 From: Farzad Soltani Date: Sun, 20 Jan 2019 10:29:40 +0330 Subject: [PATCH] feat: add circleci config --- .circleci/config.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..56b8faf --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,29 @@ +version: 2 +jobs: + build: + working_directory: /usr/src/app + docker: + - image: banian/node + steps: + # Checkout repository + - checkout + + # Restore cache + - restore_cache: + key: yarn-{{ checksum "yarn.lock" }} + + # Install dependencies + - run: + name: Install Dependencies + command: NODE_ENV=dev yarn + + # Keep cache + - save_cache: + key: yarn-{{ checksum "yarn.lock" }} + paths: + - "node_modules" + + # Test + - run: + name: Tests + command: yarn test && yarn codecov \ No newline at end of file