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