From fc212292344df1a6e1d7a17cbefefed4609226eb Mon Sep 17 00:00:00 2001 From: Florent Viel Date: Wed, 8 Jul 2020 09:52:28 +0200 Subject: [PATCH] matrix build --- .github/workflows/go.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0225e19..34bbddf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,12 +5,15 @@ jobs: build: name: Build runs-on: ubuntu-latest - steps: + strategy: + matrix: + go: [ '1.13', '1.14' ] - - name: Set up Go 1.13 + steps: + - name: Set up Go ${{ matrix.go }} uses: actions/setup-go@v1 with: - go-version: 1.13 + go-version: ${{ matrix.go }} id: go - name: Check out code into the Go module directory @@ -19,10 +22,6 @@ jobs: - name: Get dependencies run: | go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi - name: Test run: go test -v .