ci(gci/import): improve golangci.yml and add gci linter (#4010)

This commit is contained in:
houseme
2024-12-07 14:17:33 +08:00
committed by GitHub
parent 2066aa4803
commit b0b84a3937
182 changed files with 436 additions and 314 deletions

View File

@ -22,7 +22,7 @@ jobs:
- name: Set Up Golang Environment
uses: actions/setup-go@v5
with:
go-version: 1.22.5
go-version: 1.23.4
cache: false
- name: download goframe docs
run: ./download.sh

View File

@ -27,7 +27,7 @@ jobs:
golangci:
strategy:
matrix:
go-version: [ '1.20','1.21.4','1.22', '1.23' ]
go-version: [ '1.20','1.21.4','1.22','1.23' ]
name: golangci-lint
runs-on: ubuntu-latest
steps:
@ -41,5 +41,5 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.60.1
args: --timeout 3m0s
version: v1.62.2
args: --timeout 3m0s

View File

@ -21,7 +21,7 @@ jobs:
- name: Set Up Golang Environment
uses: actions/setup-go@v5
with:
go-version: 1.22.5
go-version: 1.23.4
- name: Build CLI Binary
run: |