mirror of
https://github.com/lukaszraczylo/filepuff-mcp.git
synced 2026-06-06 22:33:42 +00:00
1fe8db9012
.golangci.yml declares version: "2" (new schema) but CI was using golangci-lint-action@v6, which ships golangci-lint v1.64.8. That binary is built with go1.24 and cannot load a config targeting go1.25, so every lint run on main failed with: can't load config: the Go language version (go1.24) used to build golangci-lint is lower than the targeted Go version (1.25) golangci-lint-action@v8 supports golangci-lint v2.x. Pin v2.9.0 to match the locally-used version and keep the binary toolchain aligned with the go1.25 project target.
41 lines
684 B
YAML
41 lines
684 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.golangci.yml'
|
|
pull_request:
|
|
paths:
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.golangci.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
golangci:
|
|
name: golangci-lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.25'
|
|
cache: true
|
|
|
|
- name: Run golangci-lint
|
|
uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
version: v2.9.0
|
|
args: --timeout=5m
|