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.