From 06ccd01100bfce82b429d3203fb0a58b5f3643a6 Mon Sep 17 00:00:00 2001 From: lif Date: Sun, 14 Sep 2025 20:41:15 +0100 Subject: [PATCH] Cache test --- .gitea/workflows/docker.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index a3985e8..626ad8a 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -17,6 +17,26 @@ jobs: username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_PASSWORD }} + - name: Cache Go modules + uses: actions/cache@v3 + with: + path: | + ~/go/pkg/mod + ~/go/bin + key: go-mod-{{ hashFiles('**/go.sum') }} + restore-keys: | + go-mod- + + # Set up Go + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + # Download modules + - name: Go mod tidy + run: go mod tidy + - name: ls run: ls