...

Text file src/github.com/google/go-github/v45/.github/workflows/linter.yml

Documentation: github.com/google/go-github/v45/.github/workflows

     1on: [push, pull_request]
     2name: linter
     3
     4permissions:
     5  contents: read
     6  pull-requests: read
     7
     8jobs:
     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@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc #v3.2.0
    30      with:
    31        version: v1.44.0
    32        working-directory: ${{ matrix.working-directory}}
    33        args: --verbose

View as plain text