Skip to content

Commit 992ffba

Browse files
authored
ci: Test against current and previous Go versions (#57)
Go's support policy is to support the two most recent minor releases: e.g., with the release of Go 1.25, the supported versions are 1.24 and 1.25. Most libraries follow the same support policy. While the support policy for autogold is not necessarily written down, given that 1.24 and 1.25 (current stable and oldstable) work fine, test against both in CI until there's a reason not to. Note: The "stable" and "olstable" aliases require setup-go v3 or later.
1 parent ac50e06 commit 992ffba

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/go-ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ on:
44
- pull_request
55
jobs:
66
test:
7+
name: Test (Go ${{ matrix.go-version }})
8+
strategy:
9+
matrix:
10+
go-version: [stable, oldstable]
711
runs-on: ubuntu-latest
812
steps:
913
- name: Checkout
1014
uses: actions/checkout@v5
1115
- name: Setup Go
1216
uses: actions/setup-go@v5
1317
with:
14-
go-version: ^1
18+
go-version: ${{ matrix.go-version }}
1519
- run: go test ./...
1620
# Testing with -update enabled isn't intended to update the golden files, but to help validate that there aren't
1721
# problems when updating is enabled, race conditions in the update process etc

0 commit comments

Comments
 (0)