From 723676e641cc512e0c8d77247b0fa90938382268 Mon Sep 17 00:00:00 2001 From: Azfaar Qureshi Date: Fri, 18 Dec 2020 11:53:55 -0500 Subject: [PATCH] adding caching (#2305) --- .github/workflows/build-and-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 967e33848a5..a8b65e97bd7 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -49,6 +49,13 @@ jobs: run: | echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + - name: Restore module cache + uses: actions/cache@v2 + env: + cache-name: cache-go-modules + with: + path: /home/runner/go/pkg/mod + key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('./go.mod') }} - name: Install tools run: make install-tools - name: Upload tool binaries