-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package.json: Add flow check commands for iOS and Android #21326
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,9 +185,13 @@ aliases: | |
name: Lint code | ||
command: scripts/circleci/exec_swallow_error.sh yarn lint --format junit -o ~/react-native/reports/junit/eslint/results.xml | ||
|
||
- &run-flow-checks | ||
name: Check for errors in code using Flow | ||
command: yarn flow check | ||
- &run-flow-checks-ios | ||
name: Check for errors in code using Flow (iOS) | ||
command: yarn flow-check-ios | ||
|
||
- &run-flow-checks-android | ||
name: Check for errors in code using Flow (Android) | ||
command: yarn flow-check-android | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the second command overwrites the first. Looking at the CI logs for this step in this PR show that it only ran flow on android: https://circleci.com/gh/facebook/react-native/53561?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link You'll probably need to change this from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, fixed that up |
||
|
||
- &run-sanity-checks | ||
name: Sanity checks | ||
|
@@ -377,7 +381,8 @@ jobs: | |
at: ~/react-native | ||
|
||
- run: *run-lint-checks | ||
- run: *run-flow-checks | ||
- run: *run-flow-checks-ios | ||
- run: *run-flow-checks-android | ||
|
||
- store_test_results: | ||
path: ~/react-native/reports/junit | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woah! We weren't checking this!? Scary!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why
yarn run flow
is not enough ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That only runs checking with the default config which checks .ios.js files but not .android.js files.