mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Lint and test addons on CI (#9936)
* Lint addons * Run prettier on addons * Fix all lint issues * Remove unused variable * Test addons on CI
This commit is contained in:
@@ -28,6 +28,7 @@ if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
|
||||
COMMANDS_TO_RUN+=('./node_modules/.bin/grunt build')
|
||||
COMMANDS_TO_RUN+=('./scripts/circleci/test_extract_errors.sh')
|
||||
COMMANDS_TO_RUN+=('./scripts/circleci/track_stats.sh')
|
||||
COMMANDS_TO_RUN+=('node ./addons/test')
|
||||
fi
|
||||
|
||||
RETURN_CODES=()
|
||||
|
||||
@@ -34,6 +34,12 @@ const config = {
|
||||
'**/node_modules/**',
|
||||
],
|
||||
},
|
||||
addons: {
|
||||
patterns: ['addons/**/*.js'],
|
||||
ignore: [
|
||||
'**/node_modules/**',
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
function exec(command, args) {
|
||||
|
||||
Reference in New Issue
Block a user