github.com/diadata-org/diadata@v1.4.593/.github/workflows/golangci-lint.yml (about) 1 name: golangci-lint 2 on: 3 push: 4 tags: 5 - v* 6 branches: 7 - master 8 - ci-cd 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: v1.51 21 22 # Optional: working directory, useful for monorepos 23 # working-directory: somedir 24 25 args: --config=./.golangci.yml 26 # Optional: golangci-lint command line arguments. 27 # args: --issues-exit-code=0 28 29 # Optional: show only new issues if it's a pull request. The default value is `false`. 30 # only-new-issues: true 31 32 # Optional: if set to true then the action will use pre-installed Go. 33 # skip-go-installation: true 34 35 # Optional: if set to true then the action don't cache or restore ~/go/pkg. 36 # skip-pkg-cache: true 37 38 # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. 39 # skip-build-cache: true