From abcfad1fbdcd525712c9639dec0659c584cf4290 Mon Sep 17 00:00:00 2001 From: JT Archie Date: Sat, 10 Jul 2021 05:39:25 -0600 Subject: [PATCH] add caching for go modules (#455) --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 286c2d252..80c38591a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,4 +14,12 @@ jobs: with: go-version: ${{ matrix.version }} - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - run: make test