Commit 2a6ccc1
ci: seed CodSpeed baseline on main pushes and workflow_dispatch
The current detect-changes job short-circuits when HEAD === origin/main:
git diff origin/main..HEAD is empty, so any=false and every downstream job
(including codspeed-bench) is skipped. That left CodSpeed with no baseline
data on main after #64 merged, so every PR comment stays stuck on
"Congrats! CodSpeed is installed" with no before/after deltas.
Two fixes:
- Drop branches-ignore: main so every commit landing on main triggers a
build/test/bench run. Future merges will auto-seed the baseline.
- In detect-changes, treat workflow_dispatch or any push to refs/heads/main
as a "baseline run" and force the full package list, bypassing the diff
check that vacuously returns empty when HEAD is main.
After this lands, dispatching pr-checks against main (or just pushing this
fix to main) will populate the CodSpeed baseline, and PR #66's
codspeed-bench will start producing a real regression report on re-run.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 728def4 commit 2a6ccc1
1 file changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
48 | 69 | | |
49 | 70 | | |
50 | | - | |
51 | 71 | | |
52 | 72 | | |
53 | 73 | | |
| |||
0 commit comments