fix(guide-ci): Handle uncaught errors
This commit is contained in:
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
title: PHP Operators
|
|
||||||
localeTitle: Operadores PHP
|
|
||||||
---
|
|
||||||
## Operadores PHP
|
|
||||||
|
|
||||||
Esto es un talón. [Ayuda a nuestra comunidad a expandirla](https://github.com/freecodecamp/guides/tree/master/src/pages/php/php-operators/index.md) .
|
|
||||||
|
|
||||||
[Esta guía rápida de estilo ayudará a asegurar que su solicitud de extracción sea aceptada](https://github.com/freecodecamp/guides/blob/master/README.md) .
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
|||||||
"test-ci": "npm test",
|
"test-ci": "npm test",
|
||||||
"test:client": "cd ./client && npm test && cd ../",
|
"test:client": "cd ./client && npm test && cd ../",
|
||||||
"test:curriculum": "echo 'Warning: TODO - Define Testing.'",
|
"test:curriculum": "echo 'Warning: TODO - Define Testing.'",
|
||||||
"test:guide-directorys": "node ./tools/scripts/ci/ensure-guide-page-naming.js",
|
"test:guide-directories": "node ./tools/scripts/ci/ensure-guide-page-naming.js",
|
||||||
"test:server": "echo 'Warning: TODO - Define Testing.'",
|
"test:server": "echo 'Warning: TODO - Define Testing.'",
|
||||||
"test:tools": "jest ./tools",
|
"test:tools": "jest ./tools",
|
||||||
"start-develop": "node ./tools/scripts/start-develop.js"
|
"start-develop": "node ./tools/scripts/start-develop.js"
|
||||||
|
@ -47,7 +47,13 @@ function checkFile(file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
readdirp({ root: guideRoot })
|
readdirp({ root: guideRoot })
|
||||||
.on('data', checkFile)
|
.on('data', file =>
|
||||||
|
checkFile(file).catch(err => {
|
||||||
|
console.error(err);
|
||||||
|
// eslint-disable-next-line no-process-exit
|
||||||
|
process.exit(1);
|
||||||
|
})
|
||||||
|
)
|
||||||
.on('end', () => {
|
.on('end', () => {
|
||||||
console.log(`
|
console.log(`
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user