Commit 8382797
authored
CI: test PRs; fix midnight-flaky forecastLabel test (#15)
* fix: pin forecastLabel test fixtures away from midnight
hoursFromNow(1)/(3) used the real wall clock, so the "still today"
cases intermittently rolled into the next calendar day (UTC, as on the
GH Actions runner) and forecastLabel correctly added a weekday the
assertions didn't expect. Failed the post-merge deploy on flip.
Reproduced by pinning system time to 23:30 UTC (matches the CI failure
exactly), fixed by pinning it to noon UTC instead so the fixtures can't
cross midnight regardless of when or where the suite runs.
* ci: run lint + tests on PRs, not only on push to main
PR #14 merged with mergeStateStatus CLEAN and zero checks: static.yml
only triggered on push to main, so nothing ran against the PR branch
itself. The break it introduced (forecastLabel test fixtures crossing
a UTC midnight) was caught by the post-merge deploy job instead,
after landing on main.
Split into a test job (push + pull_request, no deploy secrets needed)
and a deploy job (needs: test, push-only) so a PR can't merge past a
red test run again. Pinned every action in the file to its commit SHA
while touching it, per repo convention.1 parent 5eb78ba commit 8382797
2 files changed
Lines changed: 40 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
26 | 45 | | |
| 46 | + | |
| 47 | + | |
27 | 48 | | |
28 | 49 | | |
29 | 50 | | |
30 | 51 | | |
31 | 52 | | |
32 | 53 | | |
33 | | - | |
| 54 | + | |
34 | 55 | | |
35 | | - | |
| 56 | + | |
36 | 57 | | |
37 | | - | |
| 58 | + | |
38 | 59 | | |
39 | 60 | | |
40 | 61 | | |
41 | 62 | | |
42 | | - | |
43 | | - | |
44 | 63 | | |
45 | 64 | | |
46 | 65 | | |
47 | 66 | | |
48 | 67 | | |
49 | 68 | | |
50 | 69 | | |
51 | | - | |
| 70 | + | |
52 | 71 | | |
53 | 72 | | |
54 | 73 | | |
55 | 74 | | |
56 | 75 | | |
57 | | - | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
154 | 166 | | |
155 | 167 | | |
156 | 168 | | |
| |||
0 commit comments