github.com/google/go-github/v49@v49.1.0/.github/workflows/linter.yml (about)

     1  on: [push, pull_request]
     2  name: linter
     3  
     4  permissions:
     5    contents: read
     6    pull-requests: read
     7  
     8  jobs:
     9    lint:
    10      strategy:
    11        matrix:
    12          go-version: [1.x]
    13          platform: [ubuntu-latest]
    14  
    15          # golangci-lint will only process a single module, so we need to call it
    16          # separately for each module in the repo.  We dont lint example/newreposecretwithlibsodium
    17          # since that needs libsodium to run.
    18          working-directory:
    19            - ""
    20            - example
    21            - scrape
    22            - update-urls
    23      runs-on: ${{ matrix.platform }}
    24  
    25      steps:
    26      - uses: actions/checkout@v3
    27  
    28      - name: golangci-lint ${{ matrix.working-directory }}
    29        uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 #v3.3.1
    30        with:
    31          version: v1.50.1
    32          working-directory: ${{ matrix.working-directory}}
    33          args: --verbose