From fd1f3a19524e2abdf98d709c6268250a0ba1aed7 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 13 Jun 2023 14:33:17 -0700 Subject: [PATCH] chore(tests): add additional test caching --- .github/workflows/go-tests.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/go-tests.yaml b/.github/workflows/go-tests.yaml index cc619c123..52878d108 100644 --- a/.github/workflows/go-tests.yaml +++ b/.github/workflows/go-tests.yaml @@ -18,6 +18,15 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: go-test-${{ github.sha }} + restore-keys: | + go-test- + - name: Install go uses: actions/setup-go@v4 with: @@ -40,6 +49,15 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: go-test-${{ github.sha }} + restore-keys: | + go-test- + - name: Install go uses: actions/setup-go@v4 with: