312471f3e5
Chore: Use golanglint-ci-includes script in Makefile (#91742)
(cherry picked from commit 27545e3da4)
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
33 lines
762 B
YAML
33 lines
762 B
YAML
name: golangci-lint
|
|
on:
|
|
push:
|
|
paths:
|
|
- pkg/**
|
|
- .github/workflows/go_lint.yml
|
|
- go.*
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint-go:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: ./go.mod
|
|
- run: CODEGEN_VERIFY=1 make gen-cue
|
|
- run: make gen-go
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v6
|
|
with:
|
|
version: v1.59.1
|
|
args: |
|
|
--config .golangci.toml --max-same-issues=0 --max-issues-per-linter=0 --verbose $(./scripts/go-workspace/golangci-lint-includes.sh)
|
|
skip-cache: true
|
|
install-mode: binary
|