From f080258872fe74ba42ad2b2162d17583c07a93fa Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Sun, 15 Sep 2019 21:00:23 +0300 Subject: [PATCH] fix circleci --- .circleci/config.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3b06703..74c8493 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,7 +41,19 @@ jobs: steps: - checkout: - path: ~/writer + + - restore_cache: + keys: + - backend-dependencies-{{ checksum "package.json" }} + + - run: + name: install backend deps + command: npm i + + - save_cache: + paths: + - node_modules + key: backend-dependencies-{{ checksum "package.json" }} - restore_cache: keys: @@ -49,16 +61,16 @@ jobs: - run: name: install frontend deps - command: npm i + command: cd frontend && npm i - save_cache: paths: - - node_modules + - frontend/node_modules key: frontend-dependencies-{{ checksum "package.json" }} - run: name: test frontend - command: npm test + command: cd frontend && npm test workflows: version: 2