Skip to content

Commit

Permalink
workflows: cache go pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed May 22, 2024
1 parent 1ff558d commit af4660f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
KO_DOCKER_REPO: ghcr.io/xdavidwu/kube-cgi
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/go/pkg
key: go-pkg
- name: prepare
run: |
echo https://dl-cdn.alpinelinux.org/alpine/edge/testing/ >> /etc/apk/repositories
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ jobs:
container: alpine:edge
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/go/pkg
key: go-pkg
- name: prepare
run: apk add make bash go
- name: test
Expand Down

0 comments on commit af4660f

Please sign in to comment.