ci: Enable actions/cache for Go modules
This commit is contained in:
		
							parent
							
								
									5f2b5327f7
								
							
						
					
					
						commit
						34483e268f
					
				|  | @ -26,6 +26,12 @@ jobs: | |||
|       with: | ||||
|         go-version: '^1.17.7' | ||||
|     - run: go version | ||||
|     - uses: actions/cache@v2 | ||||
|       with: | ||||
|         path: ~/go/pkg/mod | ||||
|         key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||||
|         restore-keys: | | ||||
|           ${{ runner.os }}-go- | ||||
|     - name: Install kubebuilder | ||||
|       run: | | ||||
|         curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.2/kubebuilder_2.3.2_linux_amd64.tar.gz | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue