diff --git a/.github/workflows/build-and-test-windows.yaml b/.github/workflows/build-and-test-windows.yaml index 0e68bffaf07..54f702c2bf9 100644 --- a/.github/workflows/build-and-test-windows.yaml +++ b/.github/workflows/build-and-test-windows.yaml @@ -22,7 +22,7 @@ jobs: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH shell: bash - name: Cache Go - uses: actions/cache@v2 + uses: actions/cache@v4 env: cache-name: cache-go-modules with: diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 181c9734edc..72aa394b08e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -22,7 +22,7 @@ jobs: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: module-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/pkg/mod key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} @@ -31,7 +31,7 @@ jobs: run: make gomoddownload - name: Cache Tools id: tool-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/bin key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} @@ -54,13 +54,13 @@ jobs: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: module-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/pkg/mod key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Cache Tools id: tool-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/bin key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} @@ -85,13 +85,13 @@ jobs: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: module-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/pkg/mod key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Cache Tools id: tool-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/bin key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} @@ -139,18 +139,18 @@ jobs: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: module-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/pkg/mod key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Cache Tools id: tool-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/bin key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} - name: Cache Build - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/.cache/go-build key: go-build-unittest-${{ runner.os }}-${{ hashFiles('**/go.sum') }} @@ -172,18 +172,18 @@ jobs: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: module-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/pkg/mod key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Cache Tools id: tool-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/go/bin key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} - name: Cache Build - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /home/runner/.cache/go-build key: go-build-coverage-${{ runner.os }}-${{ hashFiles('**/go.sum') }}