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..a54d9bfee 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: @@ -31,12 +28,12 @@ jobs: --health-timeout 5s --health-retries 5 steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 + go-version-file: go.mod - name: Check gofmt run: | set -x