🌱 Improve MHC reporting: add reason to condition, add reason+message to log #11206
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 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| working-directory: | |
| - "" | |
| - test | |
| - hack/tools | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0 | |
| - 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@4afd733a84b1f43292c63897423277bb7f4313a9 # tag=v8.0.0 | |
| with: | |
| version: v2.4.0 | |
| working-directory: ${{matrix.working-directory}} | |
| - name: Lint API | |
| run: make lint-api |