Adapt .golangci.yml to latest version and fix linter issues #1015
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GolangCIlint | |
on: | |
pull_request: | |
jobs: | |
golangci-lint: | |
name: GolangCI-Lint | |
runs-on: self-hosted | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: reviewdog/action-golangci-lint@v2 | |
with: | |
go_version_file: go.mod | |
version: v1.53.3 | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
golangci_lint_flags: "--timeout=10m" | |
reporter: github-pr-check | |
filter_mode: nofilter | |
fail_on_error: true |