Skip to content

Commit 5e5c8c2

Browse files
committed
add yarn cache
1 parent 6dc2e47 commit 5e5c8c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
# password: $DOCKER_TMP_PW
1919
steps:
2020
- checkout
21+
- restore_cache:
22+
keys:
23+
- v1-deps-{{ .Branch }}-{{ checksum "package.json" }}
24+
- v1-deps-{{ .Branch }}
25+
- v1-deps
2126
- run: |
2227
sudo apt-get update
2328
sudo apt-get --yes install libx11-dev libxkbfile-dev
@@ -41,6 +46,10 @@ jobs:
4146
- run: python --version
4247
- run: docker ps
4348
- run: yarn
49+
- save_cache:
50+
key: v1-deps-{{ .Branch }}-{{ checksum "package.json" }}
51+
paths:
52+
- ~/.cache ## cache both yarn and Cypress!
4453
- run:
4554
working_directory: browser-app
4655
command: yarn start

0 commit comments

Comments
 (0)