fix: 改用手动安装 golangci-lint - 解决 Gitea Actions 兼容性问题
This commit is contained in:
@@ -24,11 +24,12 @@ jobs:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v4
|
||||
with:
|
||||
version: v1.59.1
|
||||
args: --timeout=5m ./server/...
|
||||
- name: Install golangci-lint
|
||||
run: |
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1
|
||||
- name: Run golangci-lint
|
||||
run: |
|
||||
$(go env GOPATH)/bin/golangci-lint run --timeout=5m ./server/...
|
||||
|
||||
build:
|
||||
name: Build Docker Image
|
||||
|
||||
Reference in New Issue
Block a user