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