name: golangci-lint on: push: branches: - master - release-0.31 - release-0.32 pull_request: permissions: contents: read env: GO_VERSION: v1.26.2 GOLANGCI_LINT_VERSION: v2.9.0 jobs: golangci: name: lint runs-on: ubuntu-22.04 steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2 - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #v6.4.0 with: go-version: ${{ env.GO_VERSION }} - name: golangci-lint uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee #v9.2.1 with: version: ${{ env.GOLANGCI_LINT_VERSION }} args: --verbose