From fffbb787db5fb942471c33b4afb32cb507169a1a Mon Sep 17 00:00:00 2001 From: Natalia Date: Tue, 24 Jul 2018 17:02:14 -0700 Subject: [PATCH] Added Revision to the cache key in the circleci config --- .circleci/config.yml | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a0c95d580..c6f1761a7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -101,14 +101,13 @@ jobs: steps: - checkout - restore_cache: - keys: - - dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: Install npm 6 + deps via npm command: | sudo npm install -g npm@6.1.0 && npm install - save_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} paths: - node_modules @@ -120,7 +119,7 @@ jobs: - restore_cache: key: dependency-cache-firefox- - run: - name: Download Firefox If needed + name: Download Firefox command: ./.circleci/scripts/firefox-download.sh - save_cache: key: dependency-cache-firefox- @@ -133,7 +132,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: build:dist command: npm run dist @@ -152,7 +151,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: build:dist command: npm run doc @@ -167,7 +166,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory @@ -186,7 +185,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: Test command: npm run lint @@ -197,7 +196,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: Test command: npx nsp check @@ -208,7 +207,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -229,7 +228,7 @@ jobs: name: Install firefox command: ./.circleci/scripts/firefox-install.sh - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -245,7 +244,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -266,7 +265,7 @@ jobs: name: Install firefox command: ./.circleci/scripts/firefox-install.sh - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -282,7 +281,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - run: @@ -299,7 +298,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - restore_cache: @@ -326,7 +325,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} - restore_cache: @@ -349,7 +348,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: test:coverage command: npm run test:coverage @@ -367,7 +366,7 @@ jobs: name: Install firefox command: ./.circleci/scripts/firefox-install.sh - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory @@ -386,7 +385,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory @@ -410,7 +409,7 @@ jobs: name: Install firefox command: ./.circleci/scripts/firefox-install.sh - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory @@ -429,7 +428,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache- + key: dependency-cache-{{ .Revision }} - run: name: Get Scss Cache key # this allows us to checksum against a whole directory