diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 560bbb04c..653bec0fa 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -26,22 +26,19 @@ jobs: - uses: actions/setup-go@v4 with: go-version: 1.19 + cache: false # the golangci-lint action already caches for us (https://github.com/golangci/golangci-lint-action#performance) - - name: sanity check - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.0 - golangci-lint run - # - name: golangci-lint - # uses: golangci/golangci-lint-action@v3 - # with: - # # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - # version: v1.52.1 - # - # # Optional: working directory, useful for monorepos - # # working-directory: somedir - # - # # Optional: golangci-lint command line arguments. - # args: --fix=false + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version + version: v1.54.2 + + # Optional: working directory, useful for monorepos + # working-directory: somedir + + # Optional: golangci-lint command line arguments. + args: --fix=false # Optional: show only new issues if it's a pull request. The default value is `false`. # only-new-issues: true