mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
197613e61c
* Return all error messages from checks (to be used by Danger). * Add Danger dev dep. * Fix danger.yml + dangerfile.ts. * Fix root files. * Finetune Danger message. Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
30 lines
629 B
TypeScript
30 lines
629 B
TypeScript
import { sanityCheckAll, consistencyCheckAll } from "../action/update-all";
|
|
|
|
export async function main() {
|
|
var returnCode: number = 0;
|
|
|
|
try {
|
|
const errors1 = await sanityCheckAll();
|
|
if (errors1.length > 0) {
|
|
returnCode = errors1.length;
|
|
}
|
|
} catch(err) {
|
|
console.error(err);
|
|
returnCode = 1;
|
|
}
|
|
|
|
try {
|
|
const errors1 = await consistencyCheckAll();
|
|
if (errors1.length > 0) {
|
|
returnCode = errors1.length;
|
|
}
|
|
} catch(err) {
|
|
console.error(err);
|
|
returnCode = 1;
|
|
}
|
|
|
|
process.exit(returnCode);
|
|
}
|
|
|
|
main();
|