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: