diff options
| -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/ |
