Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v2' into fix/nolint-gocyclo
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawaha committed Oct 6, 2020
2 parents fa26799 + d6f5fb3 commit 44767b9
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: reviewdog
on: [pull_request]
jobs:
# NOTE: golangci-lint doesn't report multiple errors on the same line from
# different linters and just report one of the errors?
name: Pull Request Review

on:
pull_request:
types: [opened,synchronize]

golangci-lint:
name: runner / golangci-lint
jobs:
golangci-lint-github-pr-review:
name: runner / golangci-lint (github-pr-review)
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: golangci-lint
- name: golangci-lint w/ github-pr-review
uses: reviewdog/action-golangci-lint@v1
with:
# Can pass --config flag to change golangci-lint behavior and target
# directory.
golangci_lint_flags: "--config=./.golangci.yml
github_token: ${{ secrets.REVIEW_DOG_GITHUB_TOKEN }}
level: warning
golangci_lint_flags: "--config=.golangci.yml"
tool_name: "golangci-lint-github-pr-review"
reporter: "github-pr-review"

0 comments on commit 44767b9

Please sign in to comment.