From 980ed2963b5a3ae77fe98d8f9dd363bab164971a Mon Sep 17 00:00:00 2001 From: Neel Coffin Date: Mon, 2 Nov 2020 15:36:12 +0100 Subject: [PATCH] adding cache to db --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a0cbd6f..774c058 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -51,6 +51,9 @@ jobs: POSTGRES_DB: psdb steps: - checkout + - restore_cache: + name: restore yarn package cache + key: yarn-packages-v2{{ checksum "yarn.lock" }} - run: command: yarn test:e2e environment: @@ -58,6 +61,11 @@ jobs: API_PORT: 3000 API_HOST: localhost API_PROTOCOL: http + - save_cache: + name: save yarn package cache + key: yarn-packages-v2{{ checksum "yarn.lock" }} + paths: + - ./node_modules workflows: build_and_test: jobs: