Cache git checkouts
This commit is contained in:
1 parent
d011aca301
commit
f71e117e3a
1 file changed
+12
@@ -14,7 +14,15 @@ jobs:
|
||||
working_directory: ~/repo
|
||||
|
||||
steps:
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-git-{{ .Revision }}
|
||||
- v1-git-
|
||||
- checkout
|
||||
- save_cache:
|
||||
paths:
|
||||
- .git
|
||||
key: v1-git-{{ .Revision }}
|
||||
|
||||
# Download and cache dependencies
|
||||
- restore_cache:
|
||||
@@ -75,6 +83,10 @@ jobs:
|
||||
- image: circleci/node:8.16-browsers
|
||||
working_directory: ~/repo
|
||||
steps:
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-git-{{ .Revision }}
|
||||
- v1-git-
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
|
||||
Reference in new issue
Block a user