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
|
name: lint-pr-changes
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@v2
|
||||||
with:
|
with:
|
||||||
version: v1.42.1
|
version: v1.45.2
|
||||||
only-new-issues: true
|
only-new-issues: true
|
||||||
golangci-master:
|
golangci-master:
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
|
|
@ -30,6 +31,6 @@ jobs:
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@v2
|
||||||
with:
|
with:
|
||||||
version: v1.42.1
|
version: v1.45.2
|
||||||
only-new-issues: true
|
only-new-issues: true
|
||||||
args: --issues-exit-code=0
|
args: --issues-exit-code=0
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -153,7 +153,7 @@ vet:
|
||||||
.PHONY: lint-install
|
.PHONY: lint-install
|
||||||
lint-install:
|
lint-install:
|
||||||
@echo "Installing golangci-lint"
|
@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"
|
@echo "Installing markdownlint"
|
||||||
npm install -g markdownlint-cli
|
npm install -g markdownlint-cli
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue