From 53e13d12578be9d72b36325df3ecf13d44d56444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 17 Feb 2024 15:53:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9A=82=E6=97=B6=E5=9B=BA=E5=AE=9A=20?= =?UTF-8?q?Go=201.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 +- .github/workflows/codecov.yml | 2 +- .github/workflows/goreleaser.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- .gitlab-ci.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 127008b4..6d86631a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-go@v5 with: cache: true - go-version: 'stable' + go-version: '1.21' - name: Install dependencies run: go mod tidy - name: Build ${{ matrix.goarch }} diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 9ee8c577..25a3d078 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 'stable' + go-version: '1.21' - name: Install dependencies run: go mod tidy - name: Run tests with coverage diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 4ad074a3..6fec72c4 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 'stable' + go-version: '1.21' - name: Fetch Frontend run: | sudo apt-get install -y curl jq unzip zip diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bb4b66d9..d3c3dfee 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 'stable' + go-version: '1.21' cache: false - name: Lint uses: golangci/golangci-lint-action@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3df7447..f43c2ccd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 'stable' + go-version: '1.21' - name: Install dependencies run: sudo apt-get install -y curl jq - name: Set up environment diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 11abc51e..1d030630 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: golang:bookworm +image: golang:1.21-bookworm # 在每个任务执行前运行 before_script: