github.com/goreleaser/nfpm/v2@v2.44.0/.github/workflows/lint.yml (about) 1 name: golangci-lint 2 on: 3 push: 4 tags: 5 - v* 6 branches: 7 - main 8 pull_request: 9 10 permissions: 11 contents: read 12 13 jobs: 14 golangci: 15 permissions: 16 contents: read # for actions/checkout to fetch code 17 pull-requests: read # for golangci/golangci-lint-action to fetch pull requests 18 name: lint 19 runs-on: ubuntu-latest 20 steps: 21 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 22 - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 23 with: 24 go-version-file: go.mod 25 - name: golangci-lint 26 uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0 27 with: 28 args: --timeout=5m