Use comprehensive lint Make target
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
This commit is contained in:
parent
6c4f285eba
commit
ff8a11608a
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue