修复:应避免在 WHERE 条件中使用函数或其他运算符,使用不作用在列上的函数,会触发该规则 #2395
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI (no build) | |
on: | |
pull_request: | |
branches: | |
- 'main*' | |
- 'release*' | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up repository | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
# Should be consistent with go.mod | |
go-version: '1.19.6' | |
- name: Lint | |
uses: golangci/golangci-lint-action@v2 | |
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.45.2 | |
# If set to true then the action will use pre-installed Go | |
skip-go-installation: true | |
# Optional: golangci-lint command line arguments. | |
# The config file has lower priority than command-line options. | |
args: --config=.golangci.yml | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up repository | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
# Should be consistent with go.mod | |
go-version: '1.19.6' | |
- name: Unit test | |
run: make test |