Skip to content

Commit a257beb

Browse files
authored
Add minimum supported Go version to CI (#1303)
* Add minimum supported Go version to CI On top of automatically testing against the two most recent releases (what Go upstream supports), also test explicitly against our lower bound. As noted in the previous change, don't have a `go.mod` to source this information from, so it's simply hard-coded in this file instead. (I chose 1.21 as that was the lowest version we were testing against previously, but it's possible that could go lower or actually reasonably needs to go higher.) Signed-off-by: Tianon Gravi <[email protected]> * Add explicit `GOTOOLCHAIN=local` in CI Signed-off-by: Tianon Gravi <[email protected]> --------- Signed-off-by: Tianon Gravi <[email protected]>
1 parent 5caf304 commit a257beb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
go: [oldstable, stable]
17+
# our oldest (officially) supported version and the two upstream-supported versions
18+
go: [1.21.x, oldstable, stable]
19+
20+
env:
21+
# avoid downloading any alternate toolchains (https://go.dev/doc/toolchain)
22+
GOTOOLCHAIN: local
1823

1924
steps:
2025
- name: checkout source code

0 commit comments

Comments
 (0)