From 9d69fe889ec607372d60a3d2bcfbb83dcb78c06b Mon Sep 17 00:00:00 2001 From: Krzysztof Grodzicki Date: Wed, 16 Sep 2026 10:46:30 +0200 Subject: [PATCH] fix: check out code before setup-go so the Go cache finds go.sum, move actions to Node 24 majors - reorder build and test workflows so actions/checkout runs before actions/setup-go - bump actions/checkout to v7 and actions/setup-go to v7 in build, test and release workflows --- .github/workflows/build.yml | 8 ++++---- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5faf4ea..97b2bcf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,15 +7,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v7 + - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v7 with: go-version: "1.27" id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - - name: Get dependencies run: | make deps diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94e47ae..e6b0277 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,12 +11,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v7 with: go-version: "1.27" - diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 05842fa..af3a64f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,15 +7,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v7 + - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v7 with: go-version: "1.27" id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - - name: Get dependencies run: | make deps