Skip to content

Commit 4fd958e

Browse files
0luwaj0x1chengfang
authored andcommitted
fix configurations of golangci-lint
Signed-off-by: Josiah Ilesanmi <[email protected]>
1 parent 7d93c7a commit 4fd958e

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/ci-tests.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,17 @@ jobs:
5959
steps:
6060
- name: Checkout code
6161
uses: actions/checkout@v3
62+
- name: Setup Golang
63+
uses: actions/setup-go@v4
64+
with:
65+
go-version: '1.20'
66+
cache: false
67+
env:
68+
GO111MODULE: off
6269
- name: Run golangci-lint
63-
uses: golangci/golangci-lint-action@v3
70+
uses: golangci/golangci-lint-action@v5
6471
with:
65-
version: v1.52.2
72+
version: v1.57.2
6673
args: --timeout 5m
6774
test:
6875
name: Ensure unit tests are passing

.golangci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
run:
22
timeout: 2m
3-
skip-files:
4-
- ".*\\.pb\\.go"
5-
skip-dirs:
6-
- vendor/
73
linters:
84
enable:
95
- vet
@@ -15,5 +11,8 @@ linters:
1511
linters-settings:
1612
goimports:
1713
local-prefixes: github.com/argoproj-labs/argocd-image-updater
18-
service:
19-
golangci-lint-version: 1.52.2
14+
issues:
15+
exclude-files:
16+
- ".*\\.pb\\.go"
17+
exclude-dirs:
18+
- vendor/

0 commit comments

Comments
 (0)