Skip to content

🌱 Make clusterctl upgrade test to work when there are no machines #11463

🌱 Make clusterctl upgrade test to work when there are no machines

🌱 Make clusterctl upgrade test to work when there are no machines #11463

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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # tag=v6.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@4dc6199c7b1a012772edbd06daecab0f50c9053c # tag=v6.1.0
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # tag=v9.1.0
with:
version: v2.4.0
working-directory: ${{matrix.working-directory}}
- name: Lint API
run: make lint-api