github.com/anacrolix/torrent@v1.61.0/.github/workflows/linter.yml (about)

     1  name: GolangCI-Lint
     2  
     3  on:
     4    push:
     5      branches: [ '!master' ]
     6    pull_request:
     7      branches: [ '!master' ]
     8  
     9  jobs:
    10    golint:
    11      name: Lint
    12      runs-on: ubuntu-latest
    13      env:
    14        GO111MODULE: on
    15      steps:
    16        - uses: actions/checkout@v4
    17        - uses: golangci/golangci-lint-action@v2
    18          with:
    19            version: latest
    20  
    21            # Optional: working directory, useful for monorepos
    22            # working-directory: somedir
    23  
    24            # Optional: golangci-lint command line arguments.
    25            args: -D errcheck,unused,structcheck,deadcode
    26  
    27            # Optional: show only new issues if it's a pull request. The default value is `false`.
    28            only-new-issues: true
    29  
    30            # Optional: if set to true then the action will use pre-installed Go.
    31            skip-go-installation: true
    32  
    33            # Optional: if set to true then the action don't cache or restore ~/go/pkg.
    34            # skip-pkg-cache: true
    35  
    36            # Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
    37            # skip-build-cache: true