88 steps :
99 - checkout
1010 - restore_cache :
11- key : v1 -dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
11+ key : v2 -dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
1212 - run :
1313 name : Install Dependencies
1414 command : yarn install
1515 - save_cache :
16- key : v1 -dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
16+ key : v2 -dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
1717 paths :
1818 - ./node_modules
1919 - ./packages/app/node_modules
2525 name : Build
2626 command : yarn build:dependents
2727 - save_cache :
28- key : v1 -repo-{{ .Environment.CIRCLE_SHA1 }}
28+ key : v2 -repo-{{ .Environment.CIRCLE_SHA1 }}
2929 paths :
3030 - ~/codesandbox-client
3131
@@ -35,19 +35,19 @@ jobs:
3535 working_directory : ~/codesandbox-client
3636 steps :
3737 - restore_cache :
38- key : v1 -repo-{{ .Environment.CIRCLE_SHA1 }}
38+ key : v2 -repo-{{ .Environment.CIRCLE_SHA1 }}
3939 # We do this to compare sizes from these builds with master
4040 - restore_cache :
41- key : v1 -prod-app-build-cache-master
41+ key : v2 -prod-app-build-cache-master
4242 - run :
4343 name : Build Application
4444 command : yarn build:prod
4545 - save_cache :
46- key : v1 -prod-app-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
46+ key : v2 -prod-app-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
4747 paths :
4848 - ./packages/app/www
4949 - save_cache :
50- key : v1 -prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
50+ key : v2 -prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
5151 paths :
5252 - ./www
5353 - store_artifacts :
6060 working_directory : ~/codesandbox-client
6161 steps :
6262 - restore_cache :
63- key : v1 -repo-{{ .Environment.CIRCLE_SHA1 }}
63+ key : v2 -repo-{{ .Environment.CIRCLE_SHA1 }}
6464 - run :
6565 name : Start Test Server
6666 command : yarn start:test
@@ -73,14 +73,14 @@ jobs:
7373 - store_artifacts :
7474 path : packages/app/integration-tests/tests/__image_snapshots__/__diff_output__
7575 destination : image_snapshot_diff
76-
76+
7777 test-jest :
7878 docker :
7979 - image : circleci/node:9.0
8080 working_directory : ~/codesandbox-client
8181 steps :
8282 - restore_cache :
83- key : v1 -repo-{{ .Environment.CIRCLE_SHA1 }}
83+ key : v2 -repo-{{ .Environment.CIRCLE_SHA1 }}
8484 - run :
8585 name : Test
8686 command : yarn test
9191 working_directory : ~/codesandbox-client
9292 steps :
9393 - restore_cache :
94- key : v1 -repo-{{ .Environment.CIRCLE_SHA1 }}
94+ key : v2 -repo-{{ .Environment.CIRCLE_SHA1 }}
9595 - run :
9696 name : Lint
9797 command : yarn lint
@@ -102,9 +102,9 @@ jobs:
102102 working_directory : ~/codesandbox-client
103103 steps :
104104 - restore_cache :
105- key : v1 -repo-{{ .Environment.CIRCLE_SHA1 }}
105+ key : v2 -repo-{{ .Environment.CIRCLE_SHA1 }}
106106 - restore_cache :
107- key : v1 -prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
107+ key : v2 -prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
108108 - add_ssh_keys :
109109 fingerprints :
110110 - " f7:f1:e6:60:96:24:d9:cd:1b:8b:c0:34:e7:ee:fa:82"
@@ -113,7 +113,7 @@ jobs:
113113 command : echo "ssh.codesandbox.io ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKyKbuMPJSETTyPRRJVOeC5I8j7wyUMW8HYheg7cN71eKTuw55tkoygxI59BvNi/CAyCnRT5LnxZhvrq9nSlPYc=" >> ~/.ssh/known_hosts
114114 - deploy :
115115 command : sh ./deploy.sh
116-
116+
117117workflows :
118118 version : 2
119119 build-and-test :
0 commit comments