Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actions/cache from 2 to 4 #1285

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/PR-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ jobs:
- name: Cache binaries
id: cached_binaries
if: needs.changes.outputs.build == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached-binaries-${{ matrix.os }}-${{ github.sha }}"
path: go.mod

- name: Cache build output
if: steps.cached_binaries.outputs.cache-hit != 'true' && needs.changes.outputs.build == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ matrix.cache-path }}
key: v1-go-pkg-mod-${{ matrix.os }}-${{ hashFiles('**/go.sum') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ec2-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:

- name: Cache if success
id: cache_if_success
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: ${{inputs.region}}-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:

- name: Cache if success
id: cf-integration-test
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: go.mod
key: "cf-integration-${{ github.sha }}-test"
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:

- name: Cache if success
id: ec2-linux-integration-test
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: ec2-nvidia-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -464,7 +464,7 @@ jobs:

- name: Cache if success
id: ec2-win-integration-test
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: ec2-win-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -546,7 +546,7 @@ jobs:

- name: Cache if success
id: ec2-mac-integration-test
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: ec2-mac-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -678,7 +678,7 @@ jobs:

- name: Cache if success
id: ecs-ec2-integration-test
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: ecs-ec2-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -761,7 +761,7 @@ jobs:

- name: Cache if success
id: ecs-fargate-integration-test
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: ecs-fargate-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -839,7 +839,7 @@ jobs:

- name: Cache if success
id: eks-ec2-integration-test
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: ${{ matrix.arrays.terraform_dir }}-${{ matrix.arrays.k8s_version }}-${{ matrix.arrays.instanceType }}-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -921,7 +921,7 @@ jobs:

- name: Cache if success
id: eks-ec2-integration-test
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: eks-ec2-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -1001,7 +1001,7 @@ jobs:

- name: Cache if success
id: performance-tracking
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: performance-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -1069,7 +1069,7 @@ jobs:

- name: Cache if success
id: performance-tracking
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: performance-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -1137,7 +1137,7 @@ jobs:

- name: Cache if success
id: stress-tracking
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: stress-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }}
Expand Down Expand Up @@ -1207,7 +1207,7 @@ jobs:

- name: Cache if success
id: ec2-win-stress-tracking-test
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go.mod
key: ec2-win-stress-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:

- name: Cache container
id: cached_container
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_container_${{ github.sha }}"
path: go.mod
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:

- name: Cache win zip
id: cached_win_zip
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_win_zip_${{ github.sha }}_${{ inputs.PackageBucketKey }}_${{ inputs.Bucket }}_${{ inputs.BucketKey }}"
path: go.mod
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:

- name: Cache msi
id: cached_msi
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_msi_${{ github.sha }}"
path: go.mod
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:

- name: Cache msi
id: cached_msi
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_msi_${{ github.sha }}"
path: go.mod
Expand Down Expand Up @@ -412,7 +412,7 @@ jobs:

- name: Cache sig
id: cached_sig
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_sig_${{ github.sha }}"
path: go.mod
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ jobs:

- name: Cache binaries
id: cached_binaries
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached-binaries-${{ runner.os }}-${{ inputs.BucketKey }}"
path: go.mod

- name: Cache pkg
if: contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/Library/Caches/go-build
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:

- name: Cache sig
id: cached_sig
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_sig_${{ github.sha }}"
path: go.mod
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ jobs:

- name: Cache binaries
id: cached_binaries
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_binaries_${{ github.sha }}_${{ inputs.PackageBucketKey }}_${{ inputs.Bucket }}_${{ inputs.BucketKey }}"
path: go.mod

- name: Cache go
# Only skip for integration builds not release builds.
if: contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
Expand Down
Loading