/action-dscanner

🐶 Run D-Scanner (D language linter) during your pull requests via reviewdog

Primary LanguageDockerfileMIT LicenseMIT

action-dscanner

Test reviewdog depup release GitHub release (latest SemVer) action-bumpr supported

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.

Input

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: ''

Usage

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'