Skip to content

Commit

Permalink
[chore] disable updating go cache for most jobs (open-telemetry#21229)
Browse files Browse the repository at this point in the history
Since the other jobs that use the cache depend on `setup-environment`, we might as well only update the go cache from that job. In some cases, the update causes jobs to time out (like in the case of govulncheck)

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten committed Apr 27, 2023
1 parent 6b98866 commit e8ccc37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
go-version: 1.19
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
go-version: ~1.19.8
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand All @@ -147,7 +147,7 @@ jobs:
go-version: 1.19
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand Down Expand Up @@ -266,7 +266,7 @@ jobs:
go-version: 1.19
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand All @@ -285,7 +285,7 @@ jobs:
go-version: 1.19
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand All @@ -309,7 +309,7 @@ jobs:
go-version: 1.19
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand Down Expand Up @@ -367,7 +367,7 @@ jobs:
go-version: 1.19
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand Down Expand Up @@ -500,7 +500,7 @@ jobs:
mkdir bin/ dist/
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
go-version: 1.19
- name: Cache Go
id: go-cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
with:
path: |
~/go/bin
Expand Down

0 comments on commit e8ccc37

Please sign in to comment.