From 6f605127234b3f2582231b7f2a78c46ab436b638 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Sun, 10 Feb 2019 14:13:52 +0330 Subject: [PATCH] ci: add .circleci --- .circleci/config.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100755 index 0000000..f4dca5c --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,38 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/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" + + # Lint + - run: + name: Lint + command: yarn lint + + # Test + - run: + name: Test + command: yarn test + + # Coverage + - run: + name: Coverage + command: yarn codecov