6
6
7
7
machine :
8
8
environment :
9
- PATH : ' ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin'
9
+ PATH : ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin
10
10
executors :
11
11
w : &ref_1
12
12
machine :
13
- image : ' windows-server-2019-vs2019:stable'
13
+ image : windows-server-2019-vs2019:stable
14
14
resource_class : windows.medium
15
15
shell : bash.exe
16
16
working_directory : ~/repo
17
17
environment :
18
- AMPLIFY_DIR : ' C:/home/circleci/repo/out'
19
- AMPLIFY_PATH : ' C:/home/circleci/repo/out/amplify.exe'
18
+ AMPLIFY_DIR : C:/home/circleci/repo/out
19
+ AMPLIFY_PATH : C:/home/circleci/repo/out/amplify.exe
20
20
l : &ref_2
21
21
docker :
22
- - image : ' public.ecr.aws/j4f5f3h7/amplify-cli-e2e-base-image-repo-public:latest'
22
+ - image : public.ecr.aws/j4f5f3h7/amplify-cli-e2e-base-image-repo-public:latest
23
23
working_directory : ~/repo
24
24
resource_class : large
25
25
environment :
@@ -36,7 +36,7 @@ executors:
36
36
AMPLIFY_PATH : /home/circleci/repo/out/amplify-pkg-linux-x64
37
37
a :
38
38
docker :
39
- - image : ' cimg/android:2022.09'
39
+ - image : cimg/android:2022.09
40
40
working_directory : ~/repo
41
41
resource_class : large
42
42
environment :
@@ -77,13 +77,11 @@ jobs:
77
77
- run : yarn cache clean --force
78
78
- run : yarn run production-build
79
79
- save_cache :
80
- key : >-
81
- amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock"
82
- }}-<< parameters.os >>
80
+ key : amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
83
81
paths :
84
82
- ~/.cache
85
83
- save_cache :
86
- key : ' amplify-codegen-ssh-deps-{{ .Branch }}-<< parameters.os >> '
84
+ key : amplify-codegen-ssh-deps-{{ .Branch }}
87
85
paths :
88
86
- ~/.ssh
89
87
- persist_to_workspace :
@@ -119,7 +117,7 @@ jobs:
119
117
- restore_cache :
120
118
key : >-
121
119
amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum
122
- "yarn.lock" }}-l
120
+ "yarn.lock" }}
123
121
- run :
124
122
name : Lint
125
123
command : yarn lint
@@ -138,13 +136,11 @@ jobs:
138
136
at : ./
139
137
- restore_cache :
140
138
keys :
141
- - ' amplify-codegen-ssh-deps-{{ .Branch }}-l'
142
- - >-
143
- amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock"
144
- }}-l
139
+ - amplify-codegen-ssh-deps-{{ .Branch }}
140
+ - amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
145
141
- run :
146
142
name : Authenticate with npm
147
- command : ' echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc'
143
+ command : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
148
144
- run :
149
145
name : Publish Amplify Codegen
150
146
command : |
@@ -157,9 +153,7 @@ jobs:
157
153
- attach_workspace :
158
154
at : ./
159
155
- restore_cache :
160
- key : >-
161
- amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock"
162
- }}-<< parameters.os >>
156
+ key : amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
163
157
- run :
164
158
name : Publish to verdaccio
165
159
command : |
@@ -172,9 +166,7 @@ jobs:
172
166
yarn publish-to-verdaccio
173
167
unsetNpmRegistryUrl
174
168
- save_cache :
175
- key : >-
176
- amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}-<<
177
- parameters.os >>
169
+ key : amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
178
170
paths :
179
171
- ~/verdaccio-cache/
180
172
e2e-test :
@@ -185,13 +177,9 @@ jobs:
185
177
- attach_workspace :
186
178
at : ./
187
179
- restore_cache :
188
- key : >-
189
- amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock"
190
- }}-<< parameters.os >>
180
+ key : amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
191
181
- restore_cache :
192
- key : >-
193
- amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}-<<
194
- parameters.os >>
182
+ key : amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
195
183
- run : *ref_3
196
184
- run :
197
185
name : Run e2e tests
@@ -242,9 +230,9 @@ jobs:
242
230
- attach_workspace :
243
231
at : ./
244
232
- restore_cache :
245
- key : ' amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}'
233
+ key : amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
246
234
- restore_cache :
247
- key : ' amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}'
235
+ key : amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
248
236
- node/install :
249
237
install-yarn : true
250
238
node-version : ' 16.13'
@@ -274,7 +262,7 @@ jobs:
274
262
- attach_workspace :
275
263
at : ./
276
264
- restore_cache :
277
- key : ' amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}'
265
+ key : amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
278
266
- run :
279
267
name : Run cleanup script
280
268
command : |
0 commit comments