✨ Introduce reconciler rate-limiting and hook caching #11307
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR golangci-lint | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened] | |
| # Remove all permissions from GITHUB_TOKEN except metadata. | |
| permissions: {} | |
| jobs: | |
| golangci: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| env: | |
| # Required with Go 1.24 to enable usage of synctest in unit tests | |
| # Can be removed after we bumped to Go 1.25. | |
| GOEXPERIMENT: synctest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| working-directory: | |
| - "" | |
| - test | |
| - hack/tools | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # tag=v5.0.1 | |
| - name: Calculate go version | |
| id: vars | |
| run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT | |
| - name: Set up Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # tag=v6.0.0 | |
| with: | |
| go-version: ${{ steps.vars.outputs.go_version }} | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # tag=v9.0.0 | |
| with: | |
| version: v2.4.0 | |
| working-directory: ${{matrix.working-directory}} | |
| - name: Lint API | |
| run: make lint-api |