github.com/bazelbuild/remote-apis-sdks@v0.0.0-20240425170053-8a36686a6350/.github/workflows/golangci-lint.yml (about) 1 name: golangci-lint 2 on: 3 push: 4 tags: 5 - v* 6 branches: 7 - master 8 - main 9 pull_request: 10 jobs: 11 golangci: 12 name: lint 13 runs-on: ubuntu-latest 14 steps: 15 - uses: actions/checkout@v2 16 - name: golangci-lint 17 uses: golangci/golangci-lint-action@v2 18 with: 19 # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version 20 version: latest 21 22 # Optional: working directory, useful for monorepos 23 # working-directory: somedir 24 25 # Optional: golangci-lint command line arguments. 26 args: --issues-exit-code=0 27 28 # Optional: show only new issues if it's a pull request. The default value is `false`. 29 only-new-issues: true 30 31 # Optional: if set to true then the action will use pre-installed Go. 32 # skip-go-installation: true 33 34 # Optional: if set to true then the action don't cache or restore ~/go/pkg. 35 # skip-pkg-cache: true 36 37 # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. 38 # skip-build-cache: true