From c83e899f1fe5fa56e0322266ccd390fbc03e5c82 Mon Sep 17 00:00:00 2001 From: istarboy Date: Thu, 22 Jul 2021 09:29:26 +0800 Subject: [PATCH] add go version matrix --- .github/workflows/go.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8123eb9bc..b256fe155 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -50,6 +50,12 @@ jobs: ports: # Maps tcp port 3306 on service container to the host - 3306:3306 + + # strategy set + strategy: + matrix: + go: [ '1.13', '1.14','1.15','1.16' ] + steps: - uses: szenius/set-timezone@v1.0 @@ -61,7 +67,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: ${{ matrix.go }} - name: Before script run: |