@@ -18,7 +18,7 @@ parameters:
1818 type : string
1919 default : ' '
2020
21- defaults : &defaults
21+ default-job : &default-job
2222 parameters :
2323 react-dist-tag :
2424 description : The dist-tag of react to be used
@@ -46,6 +46,10 @@ defaults: &defaults
4646# restore_cache:
4747# key: v1-repo-{{ .Branch }}-{{ .Revision }}
4848
49+ default-context : &default-context
50+ context :
51+ - org-global
52+
4953commands :
5054 install_js :
5155 parameters :
@@ -116,7 +120,7 @@ commands:
116120
117121jobs :
118122 checkout :
119- << : *defaults
123+ << : *default-job
120124 steps :
121125 - checkout
122126 - install_js
@@ -127,7 +131,7 @@ jobs:
127131 name : Check for duplicated packages
128132 command : yarn deduplicate
129133 test_unit :
130- << : *defaults
134+ << : *default-job
131135 steps :
132136 - checkout
133137 - install_js
@@ -148,7 +152,7 @@ jobs:
148152 chmod +x codecov
149153 ./codecov -t ${CODECOV_TOKEN} -Z -F "$REACT_DIST_TAG-jsdom"
150154 test_lint :
151- << : *defaults
155+ << : *default-job
152156 steps :
153157 - checkout
154158 - install_js
@@ -162,7 +166,7 @@ jobs:
162166 name : Lint Markdown
163167 command : yarn markdownlint
164168 test_static :
165- << : *defaults
169+ << : *default-job
166170 steps :
167171 - checkout
168172 - install_js
@@ -193,7 +197,7 @@ jobs:
193197 yarn docs:link-check
194198 git add -A && git diff --exit-code --staged
195199 test_browser :
196- << : *defaults
200+ << : *default-job
197201 docker :
198202 - image : mcr.microsoft.com/playwright:v1.40.0-focal
199203 environment :
@@ -210,7 +214,7 @@ jobs:
210214 path : /tmp/_karma_webpack_
211215 destination : artifact-file
212216 test_types :
213- << : *defaults
217+ << : *default-job
214218 steps :
215219 - checkout
216220 - install_js
@@ -226,7 +230,7 @@ jobs:
226230 environment :
227231 NODE_OPTIONS : --max-old-space-size=3072
228232 test_e2e :
229- << : *defaults
233+ << : *default-job
230234 docker :
231235 - image : mcr.microsoft.com/playwright:v1.40.0-focal
232236 environment :
@@ -239,7 +243,7 @@ jobs:
239243 name : Run e2e tests
240244 command : yarn test:e2e
241245 test_e2e_website :
242- << : *defaults
246+ << : *default-job
243247 docker :
244248 - image : mcr.microsoft.com/playwright:v1.40.0-focal
245249 environment :
@@ -254,7 +258,7 @@ jobs:
254258 environment :
255259 PLAYWRIGHT_TEST_BASE_URL : << parameters.e2e-base-url >>
256260 test_regressions :
257- << : *defaults
261+ << : *default-job
258262 docker :
259263 - image : mcr.microsoft.com/playwright:v1.40.0-focal
260264 environment :
@@ -270,7 +274,7 @@ jobs:
270274 name : Upload screenshots to Argos CI
271275 command : yarn test:argos
272276 run_danger :
273- << : *defaults
277+ << : *default-job
274278 docker :
275279 - image : mcr.microsoft.com/playwright:v1.40.0-focal
276280 environment :
@@ -290,36 +294,46 @@ workflows:
290294 when :
291295 equal : [pipeline, << pipeline.parameters.workflow >>]
292296 jobs :
293- - checkout
297+ - checkout :
298+ << : *default-context
294299 - test_unit :
300+ << : *default-context
295301 requires :
296302 - checkout
297303 - test_lint :
304+ << : *default-context
298305 requires :
299306 - checkout
300307 - test_static :
308+ << : *default-context
301309 requires :
302310 - checkout
303311 - test_browser :
312+ << : *default-context
304313 requires :
305314 - checkout
306315 - test_types :
316+ << : *default-context
307317 requires :
308318 - checkout
309319 - test_e2e :
320+ << : *default-context
310321 requires :
311322 - checkout
312323 - test_regressions :
324+ << : *default-context
313325 requires :
314326 - checkout
315327 - run_danger :
328+ << : *default-context
316329 requires :
317330 - checkout
318331 e2e-website :
319332 when :
320333 equal : [e2e-website, << pipeline.parameters.workflow >>]
321334 jobs :
322- - checkout
335+ - checkout :
336+ << : *default-context
323337 - test_e2e_website :
324338 requires :
325339 - checkout
0 commit comments