github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/.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 permissions: 11 contents: read 12 # Optional: allow read access to pull request. Use with `only-new-issues` option. 13 # pull-requests: read 14 jobs: 15 golangci: 16 name: lint 17 runs-on: ubuntu-latest 18 steps: 19 - uses: actions/setup-go@v3 20 with: 21 go-version: 1.17 22 - uses: actions/checkout@v3 23 - name: golangci-lint 24 uses: golangci/golangci-lint-action@v3 25 with: 26 # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version 27 version: v1.53.3 28 29 # Optional: working directory, useful for monorepos 30 # working-directory: somedir 31 32 # Optional: golangci-lint command line arguments. 33 args: --timeout=10m --out-format=colored-line-number 34 35 # Optional: show only new issues if it's a pull request. The default value is `false`. 36 # only-new-issues: true 37 38 # Optional: if set to true then the all caching functionality will be complete disabled, 39 # takes precedence over all other caching options. 40 skip-cache: true 41 42 # Optional: if set to true then the action don't cache or restore ~/go/pkg. 43 # skip-pkg-cache: true 44 45 # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. 46 # skip-build-cache: true