From 4f18747b8baca2f92ed2cdf272ade38f47a0c62c Mon Sep 17 00:00:00 2001 From: Neel Coffin Date: Mon, 2 Nov 2020 15:55:04 +0100 Subject: [PATCH] add cache to db --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8e1479a..b2de8dd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -50,6 +50,9 @@ jobs: POSTGRES_DB: psdb POSTGRES_PASSWORD: psqlpwd steps: + - restore_cache: + name: restore yarn package cache + key: yarn-packages-v2{{ checksum "yarn.lock" }} - run: command: yarn test:e2e environment: @@ -57,6 +60,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: