From: Matt Joiner <anacrolix@gmail.com>
Date: Mon, 1 Nov 2021 00:46:22 +0000 (+1100)
Subject: Run Go GitHub action with Go 1.16 as well as 1.17
X-Git-Tag: v1.35.0
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1f22c5136627580b72a59a1bd98e8aac78626823;p=btrtrc.git

Run Go GitHub action with Go 1.16 as well as 1.17

1.16 is still used by some downstream projects, and it might ensure support for pkg.go.dev (via old build constraint tags).
---

diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index ebfc960a..e3fe8657 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -7,13 +7,16 @@ jobs:
   build:
     timeout-minutes: 30
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        go-version: [ '1.16', '1.17' ]
     steps:
     - uses: actions/checkout@v2
 
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.17
+        go-version: ${{ matrix.go-version }}
 
     - name: Test
       run: go test -race -count 2 -bench . ./...