From cb7b353c47745722bacd8aba1611602e2d157772 Mon Sep 17 00:00:00 2001 From: Nicholas Wiersma Date: Mon, 11 May 2026 05:31:48 +0200 Subject: [PATCH 1/3] chore: add dedicated test cache --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cd8999a..836115c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,13 @@ jobs: with: go-version-file: 'go.mod' + - name: Cache Go test cache + uses: actions/cache@v4 + with: + path: /tmp/go-test-cache + key: ${{ runner.os }}-gocache-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-gocache- + - name: Download dependencies run: go mod download if: steps.install-go.outputs.cache-hit != 'true' @@ -38,6 +45,8 @@ jobs: gotestsum_version: v1.13.0 - name: Run Tests + env: + GOCACHE: /tmp/go-test-cache run: gotestsum --junitfile tests.xml --format pkgname -- -cover -race ./... - name: Test Summary From beaf6937e826ca2aeaf767d20ca5de9150b6bb13 Mon Sep 17 00:00:00 2001 From: Nicholas Wiersma Date: Mon, 11 May 2026 05:36:14 +0200 Subject: [PATCH 2/3] fix: path --- .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 836115c..ef9b47e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: - name: Cache Go test cache uses: actions/cache@v4 with: - path: /tmp/go-test-cache + path: /home/runner/.cache/go-test-cache key: ${{ runner.os }}-gocache-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-gocache- @@ -46,7 +46,7 @@ jobs: - name: Run Tests env: - GOCACHE: /tmp/go-test-cache + GOCACHE: /home/runner/.cache/go-test-cache run: gotestsum --junitfile tests.xml --format pkgname -- -cover -race ./... - name: Test Summary From 4b73647d883ce85d7745ff91173567432eecd23f Mon Sep 17 00:00:00 2001 From: Nicholas Wiersma Date: Mon, 11 May 2026 05:41:50 +0200 Subject: [PATCH 3/3] chore: consistency --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef9b47e..2989eef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,8 +32,8 @@ jobs: uses: actions/cache@v4 with: path: /home/runner/.cache/go-test-cache - key: ${{ runner.os }}-gocache-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-gocache- + key: ${{ runner.os }}-go-testcache-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-go-testcache- - name: Download dependencies run: go mod download @@ -45,9 +45,9 @@ jobs: gotestsum_version: v1.13.0 - name: Run Tests + run: gotestsum --junitfile tests.xml --format pkgname -- -cover -race ./... env: GOCACHE: /home/runner/.cache/go-test-cache - run: gotestsum --junitfile tests.xml --format pkgname -- -cover -race ./... - name: Test Summary uses: test-summary/action@v2