feat: add test changelog file

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
pull/921/head
Xinwei Xiong(cubxxw-openim) 2 years ago
parent 10f954bec4
commit 249af5eba6
No known key found for this signature in database
GPG Key ID: 1BAD6F395338EFDE

@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-go@v4 - uses: actions/setup-go@v4
with: with:
go-version: '1.20' go-version: '1.21'
cache: false cache: false
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v3 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. # 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=` # 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`. # Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true only-new-issues: true
# Optional:The mode to install golangci-lint. It can be 'binary' or 'goinstall'. # Optional:The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
install-mode: "goinstall" install-mode: "binary"

@ -584,13 +584,13 @@ linters-settings:
severity: warning severity: warning
staticcheck: staticcheck:
# Select the Go version to target. The default is '1.13'. # Select the Go version to target. The default is '1.13'.
go: "1.16" go: "1.18"
# https://staticcheck.io/docs/options#checks # https://staticcheck.io/docs/options#checks
checks: [ "all" ] checks: [ "all" ]
stylecheck: stylecheck:
# Select the Go version to target. The default is '1.13'. # Select the Go version to target. The default is '1.13'.
go: "1.16" go: "1.18"
# https://staticcheck.io/docs/options#checks # https://staticcheck.io/docs/options#checks
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ] checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]

Loading…
Cancel
Save