This Github Action runs D-Scanner on your project and report its result in your Pull Requests via reviewdog.
D-Scanner is run via a call to dub lint
, thus a DUB project is expected.
inputs:
github_token:
description: 'GITHUB_TOKEN'
default: '${{ github.token }}'
# reviewdog flags
level:
description: 'Report level for reviewdog [info,warning,error]'
default: 'error'
reporter:
description: 'Reporter of reviewdog command [github-pr-check,github-check,github-pr-review].'
default: 'github-pr-check'
# D-Scanner flags
path:
description: 'Root directory where D-Scanner should be run from'
default: ''
name: reviewdog
on: [pull_request]
jobs:
linter_name:
name: runner / dscanner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dgellow/action-dscanner@v1
with:
github_token: ${{ secrets.github_token }}
# reviewdog config
reporter: github-pr-review
level: warning
# D-Scanner config
path: 'path/to/my/project'