Skip to content

ci: align Go support with oasdiff/yaml (go 1.25, test on stable)#13

Merged
reuvenharrison merged 2 commits into
v3from
ci-modernize-go-matrix
Jun 24, 2026
Merged

ci: align Go support with oasdiff/yaml (go 1.25, test on stable)#13
reuvenharrison merged 2 commits into
v3from
ci-modernize-go-matrix

Conversation

@reuvenharrison

@reuvenharrison reuvenharrison commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #11 (the matrix-modernization commit was orphaned when #11 squash-merged; re-landed here off v3) and aligns yaml3's Go support with its sibling oasdiff/yaml.

What

  • go.mod: go 1.22.5go 1.25 (same as oasdiff/yaml).
  • CI: replace the inherited GOPATH matrix (Go 1.5..tip — can't build this fork, which needs 1.22+ for range-over-int / any) with a single module-mode job on stable, matching oasdiff/yaml's test.yaml. Bumped actions/checkout→v7, setup-go→v6. The Verify modules job from ci: modernize the Go workflow (module-mode matrix + module verify) #11 is unchanged.

Safe for consumers

All consumers are already ≥1.25 (kin-openapi 1.25; oasdiff/oasdiff-service 1.26), so the floor bump forces no one to upgrade.

reuvenharrison and others added 2 commits June 24, 2026 23:40
The Test job was inherited verbatim from upstream go-yaml/yaml.v3:
Go 1.5..tip in GOPATH mode. This fork's go.mod requires go 1.22.5 and
the code uses range-over-int / any, so those versions can't build it --
the matrix was failing/meaningless. Replace it with a module-mode matrix
on the supported range (1.22.x floor, 1.23.x, latest stable), drop the
GOPATH layout and the tip-build hack, and bump actions/checkout +
setup-go. The Verify modules job (added in #11) is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
oasdiff/yaml declares go 1.25 and tests on the latest stable. Match it
here: bump the go directive 1.22.5 -> 1.25 and replace the inherited
GOPATH matrix (Go 1.5..tip, which can't build this fork) with a single
module-mode job on stable. All consumers are >= 1.25 (kin-openapi 1.25;
oasdiff/oasdiff-service 1.26), so the floor bump forces no one up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@reuvenharrison reuvenharrison changed the title ci: replace the inherited GOPATH matrix with a module-mode matrix ci: align Go support with oasdiff/yaml (go 1.25, test on stable) Jun 24, 2026
@reuvenharrison reuvenharrison merged commit 8022e86 into v3 Jun 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant