|
|
@@ -28,7 +28,7 @@ jobs:
|
|
|
- uses: actions/checkout@v4
|
|
|
- uses: actions/setup-go@v5
|
|
|
with:
|
|
|
- go-version: "1.23.x"
|
|
|
+ go-version: "1.24.x"
|
|
|
- uses: golangci/golangci-lint-action@v6
|
|
|
with:
|
|
|
args: >
|
|
|
@@ -38,7 +38,7 @@ jobs:
|
|
|
--enable sqlclosecheck,misspell,gofmt,goimports,whitespace,gocritic
|
|
|
- uses: dominikh/staticcheck-action@v1.3.1
|
|
|
with:
|
|
|
- version: "2024.1.1"
|
|
|
+ version: "latest"
|
|
|
install-go: false
|
|
|
|
|
|
commitlint:
|
|
|
@@ -48,16 +48,13 @@ jobs:
|
|
|
- uses: actions/checkout@v4
|
|
|
with:
|
|
|
fetch-depth: 0
|
|
|
-
|
|
|
- name: Setup Node.js
|
|
|
uses: actions/setup-node@v4
|
|
|
with:
|
|
|
node-version: "lts/*"
|
|
|
-
|
|
|
- name: Install commitlint
|
|
|
run: |
|
|
|
npm install --save-dev @commitlint/config-conventional @commitlint/cli
|
|
|
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
|
|
|
-
|
|
|
- name: Validate PR commits
|
|
|
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
|