diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 39f88ee..b44d2c7 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -19,6 +19,16 @@ jobs: with: go-version: '1.17.x' + - name: Cache Go Dependencies + uses: actions/cache@v2 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Vet run: go vet @@ -39,6 +49,16 @@ jobs: with: go-version: '1.17.x' + - name: Cache Go Dependencies + uses: actions/cache@v2 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Build run: go build . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae59414..ef711a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,16 @@ jobs: with: go-version: '1.17.x' + - name: Cache Go Dependencies + uses: actions/cache@v2 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Login to Docker Hub uses: docker/login-action@v1.13.0 with: