...

Text file src/github.com/cli/go-gh/v2/.github/workflows/lint.yml

Documentation: github.com/cli/go-gh/v2/.github/workflows

     1name: Lint
     2on: [push, pull_request]
     3permissions:
     4  contents: read
     5jobs:
     6  lint:
     7    runs-on: ubuntu-latest
     8
     9    steps:
    10      - name: Set up Go
    11        uses: actions/setup-go@v3
    12        with:
    13          go-version: "1.21"
    14
    15      - name: Checkout repository
    16        uses: actions/checkout@v4
    17
    18      - name: Check dependencies
    19        run: |
    20          go mod tidy
    21          git diff --exit-code go.mod
    22
    23      - name: Lint
    24        uses: golangci/golangci-lint-action@v3.4.0
    25        with:
    26          version: v1.54

View as plain text