Skip to content

Commit

Permalink
ci: cache per-branch
Browse files Browse the repository at this point in the history
Build is failing for 8570592 because the cache of a topic branch is
interfering with npm install.

Bust cache and use per-branch caching from now on.
  • Loading branch information
zypA13510 committed Apr 9, 2020
1 parent 78e9c56 commit 30f0e80
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ jobs:
- checkout
- restore_cache:
keys:
- v3-dependencies-{{ checksum "package-lock.json" }}
- v3-dependencies-
- v4-dependencies-{{ .Branch }}-{{ checksum "package-lock.json" }}
- v4-dependencies-{{ .Branch }}
- v4-dependencies-master
- v4-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v3-dependencies-{{ checksum "package-lock.json" }}
key: v4-dependencies-{{ .Branch }}-{{ checksum "package-lock.json" }}
- run: |
npm test
- store_test_results:
Expand All @@ -27,13 +29,15 @@ jobs:
- checkout
- restore_cache:
keys:
- v3-dependencies-{{ checksum "package-lock.json" }}
- v3-dependencies-
- v4-dependencies-{{ .Branch }}-{{ checksum "package-lock.json" }}
- v4-dependencies-{{ .Branch }}
- v4-dependencies-master
- v4-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v3-dependencies-{{ checksum "package-lock.json" }}
key: v4-dependencies-{{ .Branch }}-{{ checksum "package-lock.json" }}
- run: npx semantic-release

workflows:
Expand Down

0 comments on commit 30f0e80

Please sign in to comment.