2 Commits

Author SHA1 Message Date
fea5dd02eb feat: add cache restor key
Some checks failed
CI / check and test (pull_request) Has been cancelled
2024-04-01 13:00:07 +02:00
26f9c2b111 fix: add name to cache key generation 2024-04-01 12:54:42 +02:00

View File

@@ -13,14 +13,13 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- name: Setup go - name: Setup go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version-file: go.mod go-version-file: go.mod
check-latest: true check-latest: true
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1 - name: Create cache key
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: hash-go id: hash-go
with: with:
patterns: | patterns: |
@@ -34,6 +33,8 @@ jobs:
/go_path /go_path
/go_cache /go_cache
key: go_path-${{ steps.hash-go.outputs.hash }} key: go_path-${{ steps.hash-go.outputs.hash }}
restore-keys: |-
go_cache-${{ steps.hash-go.outputs.hash }}
- name: build - name: build
run: make build run: make build
- name: test - name: test