on:
  pull_request:
    types: [opened, synchronize, reopened, labeled, unlabeled]

name: Danger JS
jobs:
  dangerJS:
    name: Danger JS
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@v2
        with:
          node-version: '14'
      - uses: actions/checkout@master
      - name: Danger JS
        uses: danger/danger-js@10.9.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          args: --dangerfile .ci/danger/dangerfile.ts
