From 853a95f13a33fa45e41acd35f475f5cdd2d8c122 Mon Sep 17 00:00:00 2001 From: Andrii Vakarev Date: Sun, 11 May 2025 20:09:01 +0200 Subject: [PATCH 1/3] chore(ci): cleanup go version management by taking go version from go.mod Additionally, remove unused strategy-matrix from test job. --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e4bcef6d..56275cc36 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,7 +82,7 @@ jobs: - uses: actions/setup-go@v5 if: ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }} with: - go-version: "1.23.7" # The Go version to download (if necessary) and use. + go-version-file: go.mod - name: Build release artifacts if: ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c4f5823b..a19e3622a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,9 +12,6 @@ permissions: jobs: test: - strategy: - matrix: - go-version: [1.23.7] runs-on: ubuntu-latest services: postgres: @@ -34,7 +31,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} + go-version-file: go.mod - name: Checkout code uses: actions/checkout@v2 - name: Check gofmt From 0b79a969e1fd1b97f3dff21d3bc1f63db532d827 Mon Sep 17 00:00:00 2001 From: Andrii Vakarev Date: Wed, 14 May 2025 18:05:03 +0200 Subject: [PATCH 2/3] chore(ci): move checkout action before setup-go, so it can find the go.mod --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a19e3622a..a1314c9f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,12 +28,12 @@ jobs: --health-timeout 5s --health-retries 5 steps: + - name: Checkout code + uses: actions/checkout@v2 - name: Install Go uses: actions/setup-go@v5 with: go-version-file: go.mod - - name: Checkout code - uses: actions/checkout@v2 - name: Check gofmt run: | set -x From d94ff27bfb70a9c43a3d6c2ee5fb5cc8255427c2 Mon Sep 17 00:00:00 2001 From: Andrii Vakarev Date: Wed, 14 May 2025 18:08:36 +0200 Subject: [PATCH 3/3] chore(ci): bump checkout action v2 => v4 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a1314c9f3..a54d9bfee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: --health-retries 5 steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: