|
|
|
@ -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"
|