File tree Expand file tree Collapse file tree 1 file changed +47
-1
lines changed Expand file tree Collapse file tree 1 file changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,37 @@ aliases:
44
44
working_directory : ~/repo
45
45
46
46
jobs :
47
+ build-test-no-cache :
48
+ << : *defaults
49
+ environment :
50
+ JEST_JUNIT_OUTPUT_DIR : test-results
51
+ NODE_OPTIONS : --max-old-space-size=4000
52
+ steps :
53
+ - *restore_git_cache
54
+ - checkout
55
+ - run : npm ci
56
+ - run :
57
+ name : Lint
58
+ command : npm run test:lint -- --quiet --output-file test-results/eslint-results.xml --format junit
59
+ - run :
60
+ name : Unit
61
+ environment :
62
+ JEST_JUNIT_OUTPUT_NAME : unit-results.xml
63
+ command : npm run test:unit -- --reporters="default" --reporters="jest-junit" --coverage --coverageReporters=text --coverageReporters=lcov --maxWorkers="2"
64
+ - run :
65
+ name : Build
66
+ environment :
67
+ NODE_ENV : production
68
+ command : npm run build
69
+ - run :
70
+ name : Integration
71
+ environment :
72
+ JEST_JUNIT_OUTPUT_NAME : integration-results.xml
73
+ command : npm run test:integration -- --reporters="default" --reporters="jest-junit"
74
+ - store_artifacts :
75
+ path : coverage
76
+ - store_test_results :
77
+ path : test-results
47
78
setup :
48
79
<< : *defaults
49
80
steps :
@@ -186,9 +217,24 @@ workflows:
186
217
requires :
187
218
- setup
188
219
220
+ build-test-no-deploy :
221
+ jobs :
222
+ - build-test-no-cache :
223
+ filters :
224
+ branches :
225
+ ignore :
226
+ - master
227
+ - develop
228
+ - /^hotfix\/.*/
189
229
build-test-deploy :
190
230
jobs :
191
- - setup
231
+ - setup :
232
+ filters :
233
+ branches :
234
+ only :
235
+ - master
236
+ - develop
237
+ - /^hotfix\/.*/
192
238
- lint :
193
239
requires :
194
240
- setup
You can’t perform that action at this time.
0 commit comments