From eda0e741916f89359185cf21dc58201c7ab558b7 Mon Sep 17 00:00:00 2001 From: Yi-Jyun Pan Date: Thu, 1 Aug 2024 13:11:20 +0800 Subject: [PATCH 1/2] chore: Upgrade CI to Go 1.22 We have upgraded to Go toolchain to 1.21 recently. Besides, the dependency of #101 requires Go 1.22. Therefore, I bump to Go toolchain from 1.20 to 1.22. --- .github/workflows/build-test.yml | 2 +- .github/workflows/lint.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 48c45de..5677ff9 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: "1.20" + go-version: "1.22" - name: install mockery run: go install github.com/vektra/mockery/v2@v2.32.0 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0e7f126..bd02e4a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,12 +20,12 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: "1.20" + go-version: "1.22" cache: false - name: install mockery run: go install github.com/vektra/mockery/v2@v2.32.0 - + - name: generate mocks run: make mock diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3588dd0..89f7e7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,12 +27,12 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: "1.20" + go-version: "1.22" cache: true - name: install mockery run: go install github.com/vektra/mockery/v2@v2.32.0 - + - uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser From 196085eba53598fe65905ba00bd4c46109ca7485 Mon Sep 17 00:00:00 2001 From: Yi-Jyun Pan Date: Thu, 1 Aug 2024 13:16:08 +0800 Subject: [PATCH 2/2] fix(ci): Upgrade mockery to v2.43.2 v2.32.0 seems not working on Go 1.22. --- .github/workflows/build-test.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 5677ff9..1b37439 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -18,7 +18,7 @@ jobs: go-version: "1.22" - name: install mockery - run: go install github.com/vektra/mockery/v2@v2.32.0 + run: go install github.com/vektra/mockery/v2@v2.43.2 - name: generate mocks run: make mock diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bd02e4a..f71898d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,7 +24,7 @@ jobs: cache: false - name: install mockery - run: go install github.com/vektra/mockery/v2@v2.32.0 + run: go install github.com/vektra/mockery/v2@v2.43.2 - name: generate mocks run: make mock diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89f7e7f..8446df0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: cache: true - name: install mockery - run: go install github.com/vektra/mockery/v2@v2.32.0 + run: go install github.com/vektra/mockery/v2@v2.43.2 - uses: goreleaser/goreleaser-action@v4 with: