From a485c8df42c7d835dd797c3d3683a22815ac444a Mon Sep 17 00:00:00 2001 From: datadunia Date: Sun, 21 Jun 2026 13:44:58 +0700 Subject: [PATCH] fix(ci): add cache-dependency-path to setup-go (fix go.sum not found warning) --- .gitea/workflows/build_device_agent.yaml | 1 + .gitea/workflows/build_server_core.yaml | 1 + .gitea/workflows/ci.yml | 2 ++ 3 files changed, 4 insertions(+) diff --git a/.gitea/workflows/build_device_agent.yaml b/.gitea/workflows/build_device_agent.yaml index 0aa3fac..84feba4 100644 --- a/.gitea/workflows/build_device_agent.yaml +++ b/.gitea/workflows/build_device_agent.yaml @@ -23,6 +23,7 @@ jobs: with: go-version: '1.26' cache: true + cache-dependency-path: apps/device-agent/go.sum - uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: hash-src diff --git a/.gitea/workflows/build_server_core.yaml b/.gitea/workflows/build_server_core.yaml index 1cc4c0d..4596b9c 100644 --- a/.gitea/workflows/build_server_core.yaml +++ b/.gitea/workflows/build_server_core.yaml @@ -23,6 +23,7 @@ jobs: with: go-version: '1.26' cache: true + cache-dependency-path: apps/server-core/go.sum - uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: hash-src diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4694d36..e5d4330 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: with: go-version: '1.26' cache: true + cache-dependency-path: apps/server-core/go.sum - name: Test (skip nftables - needs root) working-directory: apps/server-core run: go test $(go list ./... | grep -v internal/firewall) -tags dev -cover -count=1 @@ -49,6 +50,7 @@ jobs: with: go-version: '1.26' cache: true + cache-dependency-path: apps/device-agent/go.sum - name: Test working-directory: apps/device-agent run: go test ./... -cover