Only run golangci-lint for PRs

This commit is contained in:
Alexander Neumann 2020-11-08 17:34:07 +01:00
parent 3bf43d7951
commit 1a3f885d3d
1 changed files with 5 additions and 0 deletions

View File

@ -241,3 +241,8 @@ jobs:
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true
args: --verbose --timeout 5m --enable-all --disable wsl
# only run golangci-lint for pull requests, otherwise ALL hints get
# reported. We need to slowly address all issues until we can enable
# linting the master branch :)
if: github.event.pull_request.head.repo.full_name != github.repository