chore: add actions/setup-go@v2 to linter config (#10935)
This commit is contained in:
parent
abceea7a96
commit
8d3e089f9d
|
|
@ -15,11 +15,12 @@ jobs:
|
|||
name: lint-pr-changes
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: actions/checkout@v2
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: v1.42.1
|
||||
version: v1.45.2
|
||||
only-new-issues: true
|
||||
golangci-master:
|
||||
if: github.ref == 'refs/heads/master'
|
||||
|
|
@ -30,6 +31,6 @@ jobs:
|
|||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: v1.42.1
|
||||
version: v1.45.2
|
||||
only-new-issues: true
|
||||
args: --issues-exit-code=0
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -153,7 +153,7 @@ vet:
|
|||
.PHONY: lint-install
|
||||
lint-install:
|
||||
@echo "Installing golangci-lint"
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
|
||||
|
||||
@echo "Installing markdownlint"
|
||||
npm install -g markdownlint-cli
|
||||
|
|
|
|||
Loading…
Reference in New Issue