Commit 675900c2 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

Merge pull request #2382 from mslipper/bugfix/bump-cache

ci: Change cache keys
parents 207fe3cf cc03b98b
...@@ -208,22 +208,22 @@ jobs: ...@@ -208,22 +208,22 @@ jobs:
steps: steps:
- restore_cache: - restore_cache:
keys: keys:
- v2-source-{{ .Branch }}-{{ .Revision }} - v2-cache-source-{{ .Branch }}-{{ .Revision }}
- v2-source-{{ .Branch }} - v2-cache-source-{{ .Branch }}
- checkout - checkout
- save_cache: - save_cache:
key: v2-source-{{ .Branch }}-{{ .Revision }} key: v2-cache-source-{{ .Branch }}-{{ .Revision }}
paths: paths:
- ".git" - ".git"
- restore_cache: - restore_cache:
keys: keys:
- v2-yarn-install-{{ checksum "yarn.lock" }} - v2-cache-yarn-install-{{ checksum "yarn.lock" }}
- v2-yarn-install - v2-cache-yarn-install
- run: - run:
name: Install dependencies name: Install dependencies
command: yarn --frozen-lockfile command: yarn --frozen-lockfile
- save_cache: - save_cache:
key: v2-yarn-install-{{ checksum "yarn.lock" }} key: v2-cache-yarn-install-{{ checksum "yarn.lock" }}
paths: paths:
- node_modules - node_modules
- packages/common-ts/node_modules - packages/common-ts/node_modules
...@@ -238,7 +238,7 @@ jobs: ...@@ -238,7 +238,7 @@ jobs:
name: Build monorepo name: Build monorepo
command: yarn build command: yarn build
- save_cache: - save_cache:
key: v2-yarn-build-{{ .Revision }} key: v2-cache-yarn-build-{{ .Revision }}
paths: paths:
- "." - "."
...@@ -248,7 +248,7 @@ jobs: ...@@ -248,7 +248,7 @@ jobs:
steps: steps:
- restore_cache: - restore_cache:
keys: keys:
- v2-yarn-build-{{ .Revision }} - v2-cache-yarn-build-{{ .Revision }}
- checkout - checkout
- run: - run:
name: Run Slither name: Run Slither
...@@ -262,7 +262,7 @@ jobs: ...@@ -262,7 +262,7 @@ jobs:
steps: steps:
- restore_cache: - restore_cache:
keys: keys:
- v2-yarn-build-{{ .Revision }} - v2-cache-yarn-build-{{ .Revision }}
- checkout - checkout
- run: - run:
name: Lint name: Lint
...@@ -283,7 +283,7 @@ jobs: ...@@ -283,7 +283,7 @@ jobs:
steps: steps:
- restore_cache: - restore_cache:
keys: keys:
- v2-yarn-build-{{ .Revision }} - v2-cache-yarn-build-{{ .Revision }}
- checkout - checkout
- run: - run:
name: Test name: Test
...@@ -306,7 +306,7 @@ jobs: ...@@ -306,7 +306,7 @@ jobs:
steps: steps:
- restore_cache: - restore_cache:
keys: keys:
- v2-yarn-build-{{ .Revision }} - v2-cache-yarn-build-{{ .Revision }}
- checkout - checkout
# Note: The below needs to be manually configured whenever we # Note: The below needs to be manually configured whenever we
# add a new package to CI. # add a new package to CI.
...@@ -385,7 +385,7 @@ jobs: ...@@ -385,7 +385,7 @@ jobs:
steps: steps:
- restore_cache: - restore_cache:
keys: keys:
- v2-yarn-build-{{ .Revision }} - v2-cache-yarn-build-{{ .Revision }}
- checkout - checkout
- run: - run:
name: Lint name: Lint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment