From bd5a6739f064fede10aecfb9b87db181feb8880e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 13 Jan 2026 21:26:43 +0100 Subject: [PATCH] ci: Move checkout step before setup-go to fix cache warnings Move the checkout step to be the first step in the workflow to fix "Restore cache failed" warnings that occur because setup-go tries to cache Go modules before the source is checked out. Co-Authored-By: Claude Opus 4.5 --- .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 83a6d16..8550517 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,8 @@ jobs: os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: + - name: Checkout code + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Install Go uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 with: @@ -27,8 +29,6 @@ jobs: - name: Update PATH run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH shell: bash - - name: Checkout code - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Fmt if: matrix.os != 'windows-latest' run: "diff <(gofmt -d .) <(printf '')"