circleci: Dedicated cache key for style checks

This commit is contained in:
Robert Vollmert
2020-04-16 13:10:21 -05:00
committed by Steve Chavez
parent e24a7d005a
commit da573a1805
+8
View File
@@ -57,6 +57,9 @@ jobs:
- image: circleci/buildpack-deps:trusty - image: circleci/buildpack-deps:trusty
steps: steps:
- checkout - checkout
- restore_cache:
keys:
- v1-stack-style-dependencies-{{ checksum "stack.yaml" }}
- run: - run:
name: install stack name: install stack
command: | command: |
@@ -68,6 +71,11 @@ jobs:
command: | command: |
rm -rf $(stack path --dist-dir) $(stack path --local-install-root) rm -rf $(stack path --dist-dir) $(stack path --local-install-root)
stack install hlint stylish-haskell stack install hlint stylish-haskell
- save_cache:
paths:
- "~/.stack"
- ".stack-work"
key: v1-stack-style-dependencies-{{ checksum "stack.yaml" }}
- run: - run:
name: Add stack tools to $PATH name: Add stack tools to $PATH
command: | command: |