| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,6 +72,16 @@ runs: | |||
| 72 | 72 | after=$(du -sm "$gocache" 2>/dev/null | cut -f1); | |
| 73 | 73 | echo "GOCACHE trimmed: ${before:-0}MB -> ${after:-0}MB (removed $((${before:-0} - ${after:-0}))MB)" | |
| 74 | 74 | ||
| 75 | + - name: Clear test cache on non-PR runs | ||
| 76 | + if: github.event_name != 'pull_request' | ||
| 77 | + run: | | ||
| 78 | + # Non-PR runs (master, release branches, nightlies) always run tests | ||
| 79 | + # from scratch to catch real failures. go clean -testcache removes | ||
| 80 | + # cached test results while preserving the compilation cache. | ||
| 81 | + go clean -testcache | ||
| 82 | + echo "Cleared test cache for fresh run" | ||
| 83 | + shell: bash | ||
| 84 | + | ||
| 75 | 85 | - name: Stabilize file mtimes for Go test cache | |
| 76 | 86 | run: | | |
| 77 | 87 | # Go's test cache validates inputs by (path, size, mtime) — NOT content. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments