aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-06-21 13:17:31 -0400
committerXe Iaso <me@xeiaso.net>2024-06-21 13:17:31 -0400
commitade22021415a543b64ffab3a90f9be356f5afb04 (patch)
tree1d63e93c0807a71c5aee55cafd4a4076365c23cb
parent6162780d1266b9ac05f775e708824d79cc7e959a (diff)
downloadxesite-ade22021415a543b64ffab3a90f9be356f5afb04.tar.xz
xesite-ade22021415a543b64ffab3a90f9be356f5afb04.zip
go: cache modules
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--.github/workflows/go.yml15
1 files changed, 10 insertions, 5 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 18d3bb3..6231eed 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -20,6 +20,16 @@ jobs:
run: |
brew bundle
+ - name: Setup Golang caches
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cache/go-build
+ ~/go/pkg/mod
+ key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
+ restore-keys: |
+ ${{ runner.os }}-golang-
+
- name: cache deno.land dependencies
uses: actions/cache@v2
with:
@@ -33,8 +43,3 @@ jobs:
- name: Test
run: go test -v ./...
-
- - name: Ensure generated code is up to date
- run: |
- go generate ./...
- git diff --exit-code || echo "The current tree is dirty, run 'go generate ./...' to fix it"