ci: reuse Go test cache in PR gate; fix stale .github paths filter #15
@@ -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 ./...
|
||||
|
||||
Reference in New Issue
Block a user