From 782d8b8a49c1188eb4b4e4b8460a032158cb24f6 Mon Sep 17 00:00:00 2001 From: Evgeny Kuznetsov Date: Sat, 1 May 2021 23:05:12 +0300 Subject: add caching --- .github/workflows/codecov.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.github/workflows/codecov.yml') diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 45a8909..169ff2a 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -9,6 +9,18 @@ jobs: - uses: actions/setup-go@v2 with: go-version: 1.14 + - name: cache + uses: actions/cache@v2 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: | + ${{ runner.os }}-build-${{ hashFiles('**/go.mod') }}-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-build-${{ hashFiles('**/go.mod') }}- + ${{ runner.os }}-build- + ${{ runner.os }}- - name: vet run: | go vet ./... -- cgit v1.2.3