From a295eb9a65a46b3f3401d99d6242aa631aad7def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 24 Mar 2024 16:28:09 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=9B=BA=E5=AE=9A=20Go=201.22=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= 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..efe1dec5 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.22' - 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..a4d8d00b 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.22' - 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..cf397ec2 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.22' - 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..a58e1e01 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.22' cache: false - name: Lint uses: golangci/golangci-lint-action@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3df7447..066963ea 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.22' - 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 07105254..b6ed2eef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: golang:bookworm +image: golang:1.22-bookworm # 在每个任务执行前运行 before_script: