Skip to content

Commit 5ea5683

Browse files
hramosfacebook-github-bot
authored andcommittedDec 20, 2017
Separate JavaScript lint/flow checks from tests
Summary: This should help make it clearer, at a glance, which specific step is failing. Run on Circle. Workflows will now show that Node 8 JS tests are green, but Node 6 JS tests are not. Lint/flow checks are also not green. Previously, it would be necessary to open the two test-node workflows to investigate which particular test failed. Given these tests and checks tend to break often, the additional clarity would be helpful. <img width="485" alt="screen shot 2017-12-20 at 9 40 07 am" src="https://user-images.githubusercontent.com/165856/34220526-ce3d3b26-e569-11e7-803f-0e4bf1090f2f.png"> Closes #17293 Differential Revision: D6612623 Pulled By: hramos fbshipit-source-id: c84351da50916e72e52c4271e2a31c16f6cdfbb9
1 parent 59c7967 commit 5ea5683

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed
 

‎.circleci/config.yml

+22-10
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,16 @@ aliases:
9696
- &run-node-tests
9797
|
9898
npm test -- --maxWorkers=2
99+
100+
- &run-lint-checks
101+
|
99102
npm run lint
103+
104+
- &run-flow-checks
105+
|
100106
npm run flow -- check
101107

108+
102109
- &filter-only-master-stable
103110
branches:
104111
only:
@@ -171,8 +178,8 @@ android_defaults: &android_defaults
171178

172179
version: 2
173180
jobs:
174-
# Runs JavaScript tests on Node 8
175-
test-js-node-8:
181+
# Runs JavaScript lint and flow checks
182+
run-js-checks:
176183
<<: *defaults
177184
docker:
178185
- image: circleci/node:8
@@ -181,25 +188,26 @@ jobs:
181188
- restore-cache: *restore-node-cache
182189
- run: *install-node-dependencies
183190
- save-cache: *save-node-cache
184-
- run: *run-node-tests
191+
- run: *run-lint-checks
192+
- run: *run-flow-checks
185193

186-
# Runs JavaScript tests on Node 6
187-
test-js-node-6:
194+
# Runs JavaScript tests on Node 8
195+
test-js-node-8:
188196
<<: *defaults
189197
docker:
190-
- image: circleci/node:6.11.0
198+
- image: circleci/node:8
191199
steps:
192200
- checkout
193201
- restore-cache: *restore-node-cache
194202
- run: *install-node-dependencies
195203
- save-cache: *save-node-cache
196204
- run: *run-node-tests
197205

198-
# Runs JavaScript tests on Node 4
199-
test-js-node-4:
206+
# Runs JavaScript tests on Node 6
207+
test-js-node-6:
200208
<<: *defaults
201209
docker:
202-
- image: circleci/node:4.8.4
210+
- image: circleci/node:6
203211
steps:
204212
- checkout
205213
- restore-cache: *restore-node-cache
@@ -457,7 +465,11 @@ workflows:
457465
build:
458466
jobs:
459467

460-
# Test Javascript on Node 8 and 6
468+
# Run lint and flow checks
469+
- run-js-checks:
470+
filters: *filter-ignore-gh-pages
471+
472+
# Test JavaScript on Node 8 and 6
461473
- test-js-node-8:
462474
filters: *filter-ignore-gh-pages
463475
- test-js-node-6:

0 commit comments

Comments
 (0)
Please sign in to comment.