Use comprehensive lint Make target

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
This commit is contained in:
Yuki Iwai 2025-08-31 05:34:37 +09:00
parent 6c4f285eba
commit ff8a11608a
3 changed files with 2 additions and 29 deletions

View File

@ -1,27 +0,0 @@
name: golangci-lint
on:
push:
branches:
- "master"
- "release-*"
tags:
- "v*"
pull_request:
branches:
- "master"
- "release-*"
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.64.8
args: --timeout=5m

View File

@ -30,7 +30,7 @@ jobs:
with:
go-version-file: ${{ env.GOPATH }}/src/github.com/kubeflow/mpi-operator/go.mod
- name: fmt check
run: make fmt
run: make fmt lint
- name: go mod tidy
run: make tidy
- name: Build

View File

@ -134,7 +134,7 @@ tidy:
.PHONY: lint
lint: bin/golangci-lint ## Run golangci-lint linter
$(GOLANGCI_LINT) run
$(GOLANGCI_LINT) run --timeout=5m
# Generate deploy/v2beta1/mpi-operator.yaml
manifest: kustomize crd