Skip to content

Commit 63e9b71

Browse files
committed
ci: test against "go.mod", "oldstable", "stable"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 9866424 commit 63e9b71

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,18 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
go: ["1.18.x", "oldstable", "stable"]
28+
go:
29+
- "" # do not specify go-version to fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
30+
- "oldstable"
31+
- "stable"
2932
platform: [ubuntu-24.04]
3033
runs-on: ${{ matrix.platform }}
3134
steps:
3235
- name: Install Go ${{ matrix.go }}
3336
uses: actions/setup-go@v6
3437
with:
3538
go-version: ${{ matrix.go }}
39+
go-version-file: "go.mod" # used when go-version is not specified.
3640
- name: Setup IPv6
3741
run: sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0
3842
- name: Checkout code
@@ -48,14 +52,18 @@ jobs:
4852
strategy:
4953
fail-fast: false
5054
matrix:
51-
go: ["1.18.x", "oldstable", "stable"]
55+
go:
56+
- "" # do not specify go-version to fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
57+
- "oldstable"
58+
- "stable"
5259
platform: [windows-latest, macos-latest]
5360
runs-on: ${{ matrix.platform }}
5461
steps:
5562
- name: Install Go ${{ matrix.go }}
5663
uses: actions/setup-go@v6
5764
with:
5865
go-version: ${{ matrix.go }}
66+
go-version-file: "go.mod" # used when go-version is not specified.
5967
- name: Checkout code
6068
uses: actions/checkout@v6
6169
- name: Build for ${{ matrix.platform }}

0 commit comments

Comments
 (0)