name: golangci-lint on: push: tags: - v* branches: - master paths-ignore: - 'docs/**' - 'mkdocs.yml' - 'README.md' pull_request: paths-ignore: - 'docs/**' - 'mkdocs.yml' - 'README.md' jobs: golangci: name: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. version: v1.45.2 # Optional: golangci-lint command line arguments. args: --issues-exit-code=0 --timeout 5m only-new-issues: true