You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`import { danger, warn, markdown, message, fail, schedule } from 'danger';
import { istanbulCoverage } from 'danger-plugin-istanbul-coverage';
schedule(() =>
istanbulCoverage({
// The location of the istanbul coverage file.
//coveragePath: "./coverage/*.json",
// Alternatively, if you have multiple coverage summaries, you can merge them into one report
coveragePaths: pathList,
// You can also specify the format, instead of letting it be inferred from the file name
// coveragePath: { path: "./coverage//lcov.info", type: "lcov" },
// Which set of files to summarise from the coverage file.
reportFileSet: 'all', // || "modified" || "created" || "createdOrModified"
// What to do when the PR doesn't meet the minimum code coverage threshold
reportMode: 'message', // || "warn" || "fail"
// Minimum coverage threshold percentages. Compared against the cumulative coverage of the reportFileSet.
threshold: {
statements: 100,
branches: 100,
functions: 100,
lines: 100,
},
name: Danger JS
on:
pull_request:
branches: [ develop ]
push:
branches: [ develop, main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use node version from .nvmrc
uses: actions/setup-node@v1
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- name: Danger
run: npx danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Looks like gitHub actions is looking for node modules when running dangerfile. Is there a way I can run istanbul coverage on github.
The text was updated successfully, but these errors were encountered: