Skip to content

Commit fc21229

Browse files
authored
matrix build
1 parent ef6902e commit fc21229

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ jobs:
55
build:
66
name: Build
77
runs-on: ubuntu-latest
8-
steps:
8+
strategy:
9+
matrix:
10+
go: [ '1.13', '1.14' ]
911

10-
- name: Set up Go 1.13
12+
steps:
13+
- name: Set up Go ${{ matrix.go }}
1114
uses: actions/setup-go@v1
1215
with:
13-
go-version: 1.13
16+
go-version: ${{ matrix.go }}
1417
id: go
1518

1619
- name: Check out code into the Go module directory
@@ -19,10 +22,6 @@ jobs:
1922
- name: Get dependencies
2023
run: |
2124
go get -v -t -d ./...
22-
if [ -f Gopkg.toml ]; then
23-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
24-
dep ensure
25-
fi
2625
2726
- name: Test
2827
run: go test -v .

0 commit comments

Comments
 (0)