Skip to content

Commit c9b9832

Browse files
Merge pull request #50 from stakater/update-lint-step
[skip-ci] Replace lint step with official action
2 parents 3705c07 + d5c332b commit c9b9832

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/pull_request.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ env:
1010
GOLANG_VERSION: 1.16
1111
KUBERNETES_VERSION: "1.20.2"
1212
KIND_VERSION: "0.10.0"
13-
GOLANG_CI_LINT_VERSION: v1.39.0
1413

1514
jobs:
1615
build:
@@ -30,9 +29,11 @@ jobs:
3029
go-version: ${{ env.GOLANG_VERSION }}
3130

3231
- name: Lint
33-
run: |
34-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${{ env.GOLANG_CI_LINT_VERSION }}
35-
golangci-lint run --timeout=10m ./...
32+
uses: golangci/[email protected]
33+
with:
34+
version: v1.39.0
35+
only-new-issues: false
36+
args: --timeout 10m
3637

3738
- name: Install kubectl
3839
run: |

.github/workflows/push.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ env:
1212
KUSTOMIZE_VERSION: "3.8.7"
1313
KUBERNETES_VERSION: "1.20.2"
1414
KIND_VERSION: "0.10.0"
15-
GOLANG_CI_LINT_VERSION: v1.39.0
1615

1716
jobs:
1817
build:
@@ -34,9 +33,11 @@ jobs:
3433
go-version: ${{ env.GOLANG_VERSION }}
3534

3635
- name: Lint
37-
run: |
38-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${{ env.GOLANG_CI_LINT_VERSION }}
39-
golangci-lint run --timeout=10m ./...
36+
uses: golangci/[email protected]
37+
with:
38+
version: v1.39.0
39+
only-new-issues: false
40+
args: --timeout 10m
4041

4142
- name: Install kubectl
4243
run: |

0 commit comments

Comments
 (0)