...

Text file src/sigs.k8s.io/controller-runtime/.github/workflows/golangci-lint.yml

Documentation: sigs.k8s.io/controller-runtime/.github/workflows

     1name: golangci-lint
     2on:
     3  pull_request:
     4    types: [opened, edited, synchronize, reopened]
     5    branches:
     6      - main
     7
     8permissions:
     9  # Required: allow read access to the content for analysis.
    10  contents: read
    11  # Optional: allow read access to pull request. Use with `only-new-issues` option.
    12  pull-requests: read
    13  # Optional: Allow write access to checks to allow the action to annotate code in the PR.
    14  checks: write
    15
    16jobs:
    17  golangci:
    18    name: lint
    19    runs-on: ubuntu-latest
    20    strategy:
    21      matrix:
    22        working-directory:
    23          - ""
    24          - tools/setup-envtest
    25    steps:
    26      - name: Set up Go
    27        uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # tag=v5.0.0
    28        with:
    29          go-version: "1.22"
    30          cache: false
    31      - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
    32      - name: golangci-lint
    33        uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # tag=v4.0.0
    34        with:
    35          version: v1.57.2
    36          args: --out-format=colored-line-number
    37          working-directory: ${{matrix.working-directory}}

View as plain text