Skip to content

Commit

Permalink
ci: update cache key, remove cache key fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Mar 29, 2020
1 parent a279dd1 commit f56fe8f
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ version: 2
# See https://blog.daemonl.com/2016/02/yaml.html
# To validate changes, use an online parser, eg.
# https://yaml-online-parser.appspot.com/
var_1: &cache_key yarn-cache-{{ checksum "yarn.lock" }}-0.12.9
var_1: &cache_key_fallback yarn-cache-
var_1: &cache_key yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}-0.12.10
var_2: &run_in_node
docker:
- image: circleci/node:12.9.1
Expand All @@ -37,9 +36,9 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback
- run: yarn --frozen-lockfile --non-interactive
- persist_to_workspace:
- save_cache:
key: *cache_key
root: ~/
paths:
- .cache/yarn
Expand All @@ -61,7 +60,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback

# Run the Buildifier to check our Bazel rules for format issues.
- run: 'yarn bazel:format --mode=check ||
Expand All @@ -81,7 +79,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback

# Build and Test
- run: yarn test --maxWorkers=1 --ci
Expand All @@ -95,7 +92,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback

# Build
- run: yarn bazel build //modules/...
Expand All @@ -120,7 +116,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback
- run: yarn copy:schematics
- run: git diff --name-only --exit-code ./modules

Expand All @@ -131,7 +126,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback
- run: yarn run example:build:prod
- run: yarn run example:cypress:ci

Expand Down Expand Up @@ -179,7 +173,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback
- *docs_cache_key
- run:
name: Setup Environment Variables
Expand All @@ -206,7 +199,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback
- *docs_cache_key
- run: npm rebuild node-sass
- run: yarn build --progress false --output-path dist/ngrx.io/ && yarn copy-404-page
Expand All @@ -225,7 +217,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback
- attach_workspace:
at: dist
- run: yarn run deploy:builds
Expand All @@ -237,7 +228,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback
- attach_workspace:
at: dist
- run:
Expand All @@ -254,7 +244,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback
- attach_workspace:
at: dist
- run:
Expand All @@ -274,7 +263,6 @@ jobs:
- restore_cache:
keys:
- *cache_key
- *cache_key_fallback
- run: yarn run cleanup:previews

workflows:
Expand Down

0 comments on commit f56fe8f

Please sign in to comment.