diff --git a/.gitea/workflows/on-push.yml b/.gitea/workflows/on-push.yml index e700c4f..59d049c 100644 --- a/.gitea/workflows/on-push.yml +++ b/.gitea/workflows/on-push.yml @@ -10,20 +10,22 @@ jobs: steps: - name: "checkout source" uses: actions/checkout@v4 - - name: "restore cache with go things" - uses: actions/cache/restore@v4 + - uses: https://gitea.com/actions/go-hashfiles@v0.0.1 + id: hash-go + with: + patterns: | + go.mod + go.sum + - name: "cache with go things" + uses: actions/cache@v4 with: path: /home/container - key: bunker-go-cache + key: bunker-go-cache-${{ steps.hash-go.outputs.hash }} + restore-keys: bunker-go-cache-${{ steps.hash-go.outputs.hash }} - name: "lint" uses: docker://code.pztrn.name/containers/go-toolbox:v8 with: command: "/usr/local/bin/task lint" - - name: "save cache with go things" - uses: actions/cache/save@v4 - with: - path: /home/container - key: bunker-go-cache # Tests: # runs-on: "ubuntu-22.04"