fix: 改用手动安装 golangci-lint - 解决 Gitea Actions 兼容性问题

This commit is contained in:
2026-04-20 09:23:51 +08:00
parent 4e45851fbb
commit d91b9744fa
+6 -5
View File
@@ -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