diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml index d767d56..48b2ade 100644 --- a/.github/workflows/unit_tests.yaml +++ b/.github/workflows/unit_tests.yaml @@ -10,6 +10,14 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.17 + - uses: actions/cache@v2 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Run tests run: go test -v -covermode=count -coverprofile=coverage.out - name: Convert coverage to lcov