Skip to content

Commit 44728b7

Browse files
committed
ci/cd新增更多的go version 检查
1 parent ad7c922 commit 44728b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ jobs:
99
build:
1010
name: Build
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go: [ '1.13', '1.12', '1.14']
15+
name: Go ${{ matrix.go }} sample
16+
1217
steps:
1318

1419
- name: Set up Go 1.13
1520
uses: actions/setup-go@v1
1621
with:
17-
go-version: 1.13
22+
go-version: ${{ matrix.go }}
1823
id: go
1924

2025
- name: Check out code into the Go module directory

0 commit comments

Comments
 (0)