diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 562c413c..a136adeb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,6 +20,13 @@ jobs: - uses: franzdiebold/github-env-vars-action@v2 + - uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: golangci-lint uses: reviewdog/action-golangci-lint@v1 with: @@ -57,6 +64,14 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 + + - uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Create k8s Kind Cluster uses: helm/kind-action@v1.1.0 with: