miller/.github/workflows/golangci-lint.yml
dependabot[bot] 445274ba49
Bump actions/setup-go from 6.5.0 to 7.0.0 (#2213)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 6.5.0 to 7.0.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](924ae3a1cd...b7ad1dad31)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 09:33:23 -04:00

46 lines
1.3 KiB
YAML

name: golangci-lint
# Runs the Go linter on every push and pull request, in addition to the
# existing build/test matrix in go.yml. The goal is to catch common style,
# bug, and performance issues early without forcing developers to install
# golangci-lint locally.
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
# Cancel in-progress runs for the same branch / PR when new commits are
# pushed; this saves CI minutes and keeps the checks queue short.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
golangci:
name: lint (ubuntu-latest, go ${{ matrix.go-version }})
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
go-version: [1.25]
steps:
- name: Check out source
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9.3.0
with:
version: v2.12.2
args: --timeout=5m ./cmd/mlr ./pkg/...