Files
go-config/.github/workflows/lint.yml
T
eSliderandCursor 26aa51360b fix(ci): pin lint toolchain to Go 1.26
Use a modern Go toolchain for golangci-lint to avoid typecheck failures reported when the runner stable channel lags behind supported language features.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-02 20:13:36 +01:00

33 lines
518 B
YAML

name: Lint
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26.x"
cache: true
- name: Run go vet
run: go vet ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout 5m