Commit 18d764b
ci: keep status check names stable across Go version bumps
Job had no explicit name, so GitHub derived the check name from the job
id plus matrix values (`test (1.26, ubuntu-latest)`). Branch protection
matches contexts by exact string, so every Go version bump renamed the
checks and left the required contexts stale — and a required context
that is never reported blocks the PR silently as "Expected", rather
than failing.
Drop go-version from the matrix and read it from go.mod instead, so the
check names become `test (ubuntu-latest)` / `test (macos-latest)` and no
longer track the toolchain version. go.mod already pins go 1.26, so the
Go version in CI is unchanged.
Also move checkout ahead of setup-go, which go-version-file requires,
add fail-fast: false so one platform failing no longer cancels the other
before its logs are available, and bump checkout v4 -> v7 and setup-go
v5 -> v7.
Required status checks must be updated to the new names after this
merges, otherwise every later PR stays pending.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent b9e6a61 commit 18d764b
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | | - | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
0 commit comments