Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created February 27, 2020 00:54
Show Gist options
  • Save manakuro/054848ea8dcbfffbf162505bf97fbb68 to your computer and use it in GitHub Desktop.
Save manakuro/054848ea8dcbfffbf162505bf97fbb68 to your computer and use it in GitHub Desktop.
// dangerfile.ts
import { warn, danger, schedule } from "danger"
import { istanbulCoverage } from 'danger-plugin-istanbul-coverage';
// ...
schedule(
istanbulCoverage({
reportFileSet: 'createdOrModified',
coveragePath: { path: './coverage/lcov.info', type: 'lcov' },
reportMode: 'warn',
threshold: {
statements: 90,
branches: 90,
functions: 90,
lines: 90,
},
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment