From 997b6a9f79a9445fe7326307db5dfa06015558fb Mon Sep 17 00:00:00 2001 From: Sasha Melentyev Date: Sat, 26 Feb 2022 18:23:37 +0300 Subject: [PATCH] build: add matrix strategy with go version (#1845) --- .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 5eac3b5d8..2a3841cfc 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,6 +11,9 @@ on: jobs: build: + strategy: + matrix: + go: [ 1.16, 1.17 ] name: build & test runs-on: ubuntu-latest services: @@ -42,7 +45,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: ${{ matrix.go }} - name: Build run: go build ./...