From 1f22c5136627580b72a59a1bd98e8aac78626823 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 1 Nov 2021 11:46:22 +1100 Subject: [PATCH] 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). --- .github/workflows/go.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 . ./... -- 2.48.1