diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 51e96126c..8cc1fe73b 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v3 @@ -42,10 +42,10 @@ jobs: # # Note: by default the `.golangci.yml` file should be at the root of the repository. # The location of the configuration file can be changed by using `--config=` - args: --config ./scripts/golangci.yml --timeout=30m # --issues-exit-code=0 + args: -c ./scripts/golangci.yml --timeout=30m # --issues-exit-code=0 # Optional: show only new issues if it's a pull request. The default value is `false`. only-new-issues: true # Optional:The mode to install golangci-lint. It can be 'binary' or 'goinstall'. - install-mode: "goinstall" + install-mode: "binary" \ No newline at end of file diff --git a/scripts/golangci.yml b/scripts/golangci.yml index 8bafbbe5c..55f5ada52 100644 --- a/scripts/golangci.yml +++ b/scripts/golangci.yml @@ -584,13 +584,13 @@ linters-settings: severity: warning staticcheck: # Select the Go version to target. The default is '1.13'. - go: "1.16" + go: "1.18" # https://staticcheck.io/docs/options#checks checks: [ "all" ] stylecheck: # Select the Go version to target. The default is '1.13'. - go: "1.16" + go: "1.18" # https://staticcheck.io/docs/options#checks checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]