UNPKG

484 BJavaScriptView Raw
1/* global process, fail */
2
3// requires
4const eslint = require('@seadub/danger-plugin-eslint').default;
5const junit = require('@seadub/danger-plugin-junit').default;
6const dependencies = require('@seadub/danger-plugin-dependencies').default;
7
8async function main() {
9 await Promise.all([
10 eslint(),
11 junit({ pathToReport: './TEST-*.xml' }),
12 dependencies({ type: 'npm' })
13 ]);
14}
15main()
16 .then(() => process.exit(0))
17 .catch(err => {
18 fail(err.toString());
19 process.exit(1);
20 });