gobot.io/x/gobot/v2@v2.1.0/.github/workflows/golangci-lint.yml (about)

     1  name: golangci-lint
     2  on:
     3    push:
     4      tags:
     5        - v*
     6      branches:
     7        - dev
     8    pull_request:
     9  permissions:
    10    contents: read
    11    # Optional: allow read access to pull request. Use with `only-new-issues` option.
    12    # pull-requests: read
    13  jobs:
    14    golangci:
    15      name: lint
    16      runs-on: ubuntu-latest
    17      steps:
    18        - uses: actions/setup-go@v4
    19          with:
    20            go-version: '1.17'
    21            cache: false
    22        - uses: actions/checkout@v3
    23        - name: golangci-lint
    24          uses: golangci/golangci-lint-action@v3
    25          with:
    26            # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
    27            version: v1.52.2
    28  
    29            # Optional: working directory, useful for monorepos
    30            # working-directory: v2
    31  
    32            # Optional: golangci-lint command line arguments.
    33            # mostly there is no problem locally, but on server: "could not import C (cgo preprocessing failed) (typecheck)"
    34            args: --skip-files platforms/digispark/littleWire.go
    35  
    36            # Optional: show only new issues if it's a pull request. The default value is `false`.
    37            # only-new-issues: true
    38  
    39            # Optional: if set to true then the all caching functionality will be complete disabled,
    40            #           takes precedence over all other caching options.
    41            # skip-cache: true
    42  
    43            # Optional: if set to true then the action don't cache or restore ~/go/pkg.
    44            # skip-pkg-cache: true
    45  
    46            # Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
    47            # skip-build-cache: true