From 26fac4fbb10fa74aafaba612a9152910594bc236 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 13 Nov 2026 14:55:44 +0100 Subject: [PATCH] ci: install go after checkout Actions were warning, because it failed to find a `go.mod`, which it uses for caching; > Install Go stable > > Restore cache failed: Dependencies file is not found in /home/runner/work/term/term. Supported file pattern: go.mod Reverse the order of the actions, so that the code is checked out before installing Go. Signed-off-by: Sebastiaan van Stijn --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5cd634d..8574edc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,14 +23,14 @@ jobs: platform: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.platform }} steps: - - name: Install Go ${{ matrix.go }} - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go }} - name: Checkout code uses: actions/checkout@v6 with: persist-credentials: false + - name: Install Go ${{ matrix.go }} + uses: actions/setup-go@v6 + with: + go-version: ${{ matrix.go }} - name: Test run: go test -v ./... lint: