diff options
| author | Josiah Ilesanmi <ilesanmi.josiah@gmail.com> | 2024-05-03 21:31:38 +0200 |
|---|---|---|
| committer | Cheng Fang <cfang@redhat.com> | 2024-05-07 13:19:23 -0400 |
| commit | 4fd958ea1a06c12cd554a8531f17d10dbffed206 (patch) | |
| tree | afd8308120baa496c7d6ea6859ee9e33cfbbca27 | |
| parent | 7d93c7ab1521e0928764eb8c7bb5b27656b051a2 (diff) | |
fix configurations of golangci-lint
Signed-off-by: Josiah Ilesanmi <ilesanmi.josiah@gmail.com>
| -rw-r--r-- | .github/workflows/ci-tests.yaml | 11 | ||||
| -rw-r--r-- | .golangci.yml | 11 |
2 files changed, 14 insertions, 8 deletions
diff --git a/.github/workflows/ci-tests.yaml b/.github/workflows/ci-tests.yaml index 831f2f4..e345f4c 100644 --- a/.github/workflows/ci-tests.yaml +++ b/.github/workflows/ci-tests.yaml @@ -59,10 +59,17 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + - name: Setup Golang + uses: actions/setup-go@v4 + with: + go-version: '1.20' + cache: false + env: + GO111MODULE: off - name: Run golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v5 with: - version: v1.52.2 + version: v1.57.2 args: --timeout 5m test: name: Ensure unit tests are passing diff --git a/.golangci.yml b/.golangci.yml index 599f38d..8deb3d7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,9 +1,5 @@ run: timeout: 2m - skip-files: - - ".*\\.pb\\.go" - skip-dirs: - - vendor/ linters: enable: - vet @@ -15,5 +11,8 @@ linters: linters-settings: goimports: local-prefixes: github.com/argoproj-labs/argocd-image-updater -service: - golangci-lint-version: 1.52.2 +issues: + exclude-files: + - ".*\\.pb\\.go" + exclude-dirs: + - vendor/ |
