diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4903e677..9bf0ed92 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,13 +18,6 @@ jobs: with: fetch-depth: 0 - - uses: actions/cache@v3 - 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@v2 with: @@ -32,7 +25,8 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: '^1.18' + cache: true + go-version-file: 'go.mod' - name: Test and build image run: | @@ -60,14 +54,8 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: '^1.18' - - - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + cache: true + go-version-file: 'go.mod' - name: Create k8s Kind Cluster uses: helm/kind-action@v1.2.0 @@ -100,7 +88,8 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: '^1.18' + cache: true + go-version-file: 'go.mod' - name: bundle run: |