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