Skip to content

Commit e08d7d9

Browse files
authored
[cicd] Enable devbox cache and add golang cache (#152)
## Summary * Enable devbox cache * Add golang cache (maybe eventually devbox can handle this as well) ## How was it tested? CICD <img width="1278" alt="image" src="https://github.com/jetpack-io/opensource/assets/544948/a4a92467-b939-4dee-967b-89a58b1d2bc8"> --------- Signed-off-by: Mike Landau <mikeland86@gmail.com>
1 parent ed9c2b1 commit e08d7d9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/monorepo-go.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ jobs:
2020

2121
- name: Install devbox
2222
uses: jetpack-io/devbox-install-action@v0.7.0
23+
with:
24+
enable-cache: true
25+
26+
- name: Mount golang cache
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
~/.cache/golangci-lint
31+
~/.cache/go-build
32+
~/go/pkg
33+
key: ${{ runner.os }}-${{ hashFiles('go.work.sum') }}
2334

2435
- name: Go modules should be up-to-date
2536
run: |

0 commit comments

Comments
 (0)