Skip to content

🌱 Bump the all-go-mod-patch-and-minor group across 3 directories with 16 updates #11602

🌱 Bump the all-go-mod-patch-and-minor group across 3 directories with 16 updates

🌱 Bump the all-go-mod-patch-and-minor group across 3 directories with 16 updates #11602

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