github.com/getgauge/gauge@v1.6.9/.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  permissions:
    11    contents: read
    12  
    13  jobs:
    14    golangci:
    15      permissions:
    16        contents: read  # for actions/checkout to fetch code
    17        pull-requests: read  # for golangci/golangci-lint-action to fetch pull requests
    18      name: lint
    19      runs-on: ubuntu-latest
    20      steps:
    21        - uses: actions/checkout@v4
    22        - name: Set up Go
    23          uses: actions/setup-go@v5
    24          with:
    25            check-latest: true
    26            go-version-file: 'go.mod'
    27        - name: golangci-lint
    28          uses: golangci/golangci-lint-action@v6
    29          with:
    30            args: --timeout=10m
    31          # with:
    32            # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
    33            # version: v1.40.1
    34  
    35            # Optional: working directory, useful for monorepos
    36            # working-directory: somedir
    37  
    38            # Optional: golangci-lint command line arguments.
    39            # args: --disable=staticcheck
    40  
    41            # Optional: show only new issues if it's a pull request. The default value is `false`.
    42            # only-new-issues: true