ci: reuse Go test cache in PR gate; fix stale .github paths filter #15

Merged
claude-ceo-assistant merged 1 commits from ci/reuse-go-test-cache into main 2026-06-11 01:11:51 +00:00
+8 -3
View File
@@ -11,13 +11,13 @@ on:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/ci.yml'
- '.gitea/workflows/ci.yml'
pull_request:
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/ci.yml'
- '.gitea/workflows/ci.yml'
permissions:
contents: read
@@ -36,4 +36,9 @@ jobs:
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -count=1 ./...
# No -count=1: the runner fleet persists GOCACHE (operator-config#184),
# so unchanged packages legitimately reuse cached results ("(cached)").
# Tests here are hermetic (httptest mock servers); the cache invalidates
# on any source/dep change. Keep -race (76569b7 rationale: connect
# orchestrator heartbeat/poll goroutines).
run: go test -race ./...