...

Text file src/github.com/vektah/gqlparser/v2/.github/workflows/lint.yml

Documentation: github.com/vektah/gqlparser/v2/.github/workflows

     1name: golangci-lint
     2on:
     3  push:
     4    branches:
     5    - main
     6  pull_request:
     7    branches:
     8    - main
     9env:
    10  GOFLAGS: "-trimpath"
    11  GO_VERSION: 1.19
    12jobs:
    13  resolve-modules:
    14    name: Resolve Modules
    15    #    runs-on: [self-hosted, linux, x64]
    16    runs-on: ubuntu-latest
    17    outputs:
    18      matrix: ${{ steps.set-matrix.outputs.matrix }}
    19    steps:
    20      - name: Checkout Sources
    21        uses: actions/checkout@v2
    22      - id: set-matrix
    23        run: ./tools/resolve-modules.sh
    24  golangci:
    25    name: Linter
    26    needs: resolve-modules
    27    runs-on: ubuntu-latest
    28    strategy:
    29      matrix: ${{ fromJson(needs.resolve-modules.outputs.matrix) }}
    30    steps:
    31      - name: Install Go
    32        uses: actions/setup-go@v3
    33        with:
    34          # stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
    35          go-version: ${{ env.GO_VERSION }}
    36      - uses: actions/checkout@v2
    37      - name: lint
    38        uses: golangci/golangci-lint-action@v3.2.0
    39        with:
    40          version: latest
    41          # skip cache because of flaky behaviors
    42          skip-build-cache: true
    43          skip-pkg-cache: true
    44          working-directory: ${{ matrix.workdir }}
    45          args: --timeout 5m --issues-exit-code=0
    46          # only-new-issues: true #show only new issues if it's a pull request. options working-directory and only-new-issues are incompatible

View as plain text