Skip to content

Commit 9313c70

Browse files
committed
gha: test against oldest supported and current go versions
Also set GOTOOLCHAIN to "local" to prevent changes in go.mod to override the version used in tests. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 03e34e3 commit 9313c70

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu, macos, windows]
17-
golang: ['1.23', '1.24']
17+
# test oldest supported version and currently maintained Go versions.
18+
golang: ['1.23.x', 'oldstable', 'stable']
1819
# currently, we cannot run non-x86_64 machines on GitHub Actions cloud env.
1920
runs-on: ${{ matrix.os }}-latest
21+
env:
22+
# Setting GOTOOLCHAIN to local tells go
23+
# to use the bundled Go version rather
24+
# than fetching the toolchain according to
25+
# toolchain directive found in go.mod.
26+
GOTOOLCHAIN: local
2027
name: CI golang ${{ matrix.golang }} on ${{ matrix.os }}
2128
steps:
2229
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)