github.com/nikandfor/loc@v0.5.1/.github/workflows/golangci-lint.yml (about) 1 name: golangci-lint 2 on: 3 push: 4 pull_request: 5 jobs: 6 golangci: 7 name: lint 8 runs-on: ubuntu-latest 9 steps: 10 - uses: actions/checkout@v2 11 - name: golangci-lint 12 uses: golangci/golangci-lint-action@v2 13 with: 14 # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. 15 version: latest 16 17 # Optional: working directory, useful for monorepos 18 # working-directory: somedir 19 20 # Optional: golangci-lint command line arguments. 21 # args: --issues-exit-code=0 22 23 # Optional: show only new issues if it's a pull request. The default value is `false`. 24 # only-new-issues: true