From 658866a66143200d5b28ca3c297dc92a21bee84c Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Wed, 10 Jun 2026 14:58:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E7=A6=81=E7=94=A8=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E7=9A=84=E7=BC=93=E5=AD=98=E6=9C=8D=E5=8A=A1=EF=BC=8C=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=20GOPROXY=3Dgoproxy.cn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/go-loom.yaml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/go-loom.yaml b/.gitea/workflows/go-loom.yaml index 467db43..d9949ef 100644 --- a/.gitea/workflows/go-loom.yaml +++ b/.gitea/workflows/go-loom.yaml @@ -8,6 +8,7 @@ on: env: GO_VERSION: '1.26' + GOPROXY: 'https://goproxy.cn,direct' GOLANGCI_LINT_VERSION: 'v1.57.2' jobs: @@ -22,19 +23,10 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - cache: true - - - name: Cache golangci-lint - uses: actions/cache@v4 - with: - path: /usr/local/bin/golangci-lint - key: golangci-lint-${{ env.GOLANGCI_LINT_VERSION }} + cache: false - name: Install golangci-lint - run: | - if [ ! -f /usr/local/bin/golangci-lint ]; then - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin ${{ env.GOLANGCI_LINT_VERSION }} - fi + run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin ${{ env.GOLANGCI_LINT_VERSION }} - name: Run golangci-lint run: golangci-lint run --timeout=5m --issues-exit-code=0 @@ -50,7 +42,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - cache: true + cache: false - name: Run tests run: | @@ -80,7 +72,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - cache: true + cache: false - name: Build binary run: |