Skip to content

Commit 29adb2f

Browse files
panmariabhinavdangeti
authored andcommitted
Run tests on a matrix of go versions (golang#168)
Resolves golang#163
1 parent 6580a94 commit 29adb2f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ jobs:
1616

1717
build:
1818
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
# Test on supported go compiler releases as well as the oldest version we support from go.mod.
22+
go: [ '1.21.0', 'oldstable', 'stable' ]
23+
name: Go version ${{ matrix.go }}
1924
steps:
2025
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2126

2227
- name: Set up Go
2328
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
2429
with:
25-
# TODO: enable [matrix testing](https://github.com/marketplace/actions/setup-go-environment#matrix-testing)
26-
# so that we can test on both stable, oldstable and the oldest version
27-
# we currently support (as specified in go.mod).
28-
go-version: 'stable'
30+
go-version: ${{ matrix.go }}
2931

3032
- name: Build
3133
run: go build -v ./...

0 commit comments

Comments
 (0)