File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,22 @@ commands:
24
24
--paths /\*
25
25
26
26
jobs :
27
- test :
27
+ build :
28
28
docker :
29
29
- image : circleci/node:11.12
30
30
working_directory : ~/repo
31
31
steps :
32
32
- checkout
33
+ - restore_cache :
34
+ keys :
35
+ - yarn-dependencies-{{ checksum "package.json" }}
33
36
- run :
34
- name : Install dependencies for lint and test
37
+ name : Install dependencies
35
38
command : yarn
39
+ - save_cache :
40
+ key : yarn-dependencies-{{ checksum "package.json" }}
41
+ paths :
42
+ - ~/.cache
36
43
- run :
37
44
name : Set env variables
38
45
command : echo 'export VERSION=$(echo $CIRCLE_SHA1 | cut -c -7)' >> $BASH_ENV
@@ -92,20 +99,20 @@ workflows:
92
99
version : 2
93
100
test_and_deploy :
94
101
jobs :
95
- - test :
102
+ - build :
96
103
context : build
97
104
- deploy_staging :
98
105
context : deployments_staging
99
106
requires :
100
- - test
107
+ - build
101
108
filters :
102
109
branches :
103
110
only :
104
111
- staging
105
112
- deploy_production :
106
113
context : deployments
107
114
requires :
108
- - test
115
+ - build
109
116
filters :
110
117
branches :
111
118
only :
You can’t perform that action at this time.
0 commit comments