fix(ci): update golangci-lint to support Go 1.25.3
Some checks failed
CI / Test (pull_request) Failing after 23s
CI / Lint (pull_request) Failing after 18s
CI / Build (pull_request) Successful in 14s
CI / Format Check (pull_request) Successful in 2s

- Replace manual golangci-lint v2.1.6 installation (built with Go 1.24)
- Use official golangci/golangci-lint-action@v6 GitHub Action
- Set version to v2.6.0 which supports Go 1.25+
- Action automatically handles Go version compatibility

Fixes CI error: 'the Go language version (go1.24) used to build
golangci-lint is lower than the targeted Go version (1.25.3)'
This commit is contained in:
2025-11-06 09:53:39 +01:00
parent 260bc07114
commit 557e6a009e

View File

@@ -78,13 +78,11 @@ jobs:
with:
go-version: '1.25.3'
- name: Install golangci-lint v2.1.6
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.6
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Run golangci-lint
run: golangci-lint run --timeout=5m
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v2.6.0
args: --timeout=5m
build:
name: Build