diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 52c46584..9e987ca8 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -20,16 +20,16 @@ name: reviewdog on: [pull_request] jobs: - golangci-lint: - name: review + reviewdog: + name: reviewdog runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + # ... + - uses: reviewdog/action-setup@v1 with: - persist-credentials: false - submodules: true - - name: golangci-lint - uses: ./.github/actions/review-dog - with: - golangci_lint_flags: "--timeout=10m" \ No newline at end of file + reviewdog_version: latest # Optional. [latest,nightly,v.X.Y.Z] + - name: Run reviewdog + env: + REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + reviewdog -reporter=github-pr-check -runners=golint,govet