github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/.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  jobs:
    11    golangci:
    12      name: lint
    13      runs-on: ubuntu-latest
    14      strategy:
    15        matrix:
    16          go-version: [1.18.0]
    17      steps:
    18        - uses: actions/checkout@v2
    19        - name: golangci-lint
    20          uses: golangci/golangci-lint-action@v2
    21          with:
    22            stable: 'false'
    23            go-version: ${{ matrix.go-version }}
    24  
    25            # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
    26            version: v1.45.2
    27  
    28            # Optional: working directory, useful for monorepos
    29            # working-directory: somedir
    30  
    31            # Optional: golangci-lint command line arguments.
    32            #args: ./ ./cmd/... ./testpb/...
    33  
    34            # Optional: show only new issues if it's a pull request. The default value is `false`.
    35            # only-new-issues: true