Skip to content

Commit dbf65bf

Browse files
authored
Merge pull request #7961 from BryceLTaylor/Reduce-CI-Storage
Circle add workflow for PRs that don't cache
2 parents 7ace9e7 + 4b91615 commit dbf65bf

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

.circleci/config.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,37 @@ aliases:
4444
working_directory: ~/repo
4545

4646
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
4778
setup:
4879
<<: *defaults
4980
steps:
@@ -186,9 +217,24 @@ workflows:
186217
requires:
187218
- setup
188219

220+
build-test-no-deploy:
221+
jobs:
222+
- build-test-no-cache:
223+
filters:
224+
branches:
225+
ignore:
226+
- master
227+
- develop
228+
- /^hotfix\/.*/
189229
build-test-deploy:
190230
jobs:
191-
- setup
231+
- setup:
232+
filters:
233+
branches:
234+
only:
235+
- master
236+
- develop
237+
- /^hotfix\/.*/
192238
- lint:
193239
requires:
194240
- setup

0 commit comments

Comments
 (0)