Skip to content

Commit e9b3a54

Browse files
committed
Use GitHub Actions
While GitHub Actions cannot run all tests, it would be nice to have that to make sure the SDK works on multiple different Go versions. Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent 7cc68c0 commit e9b3a54

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/go.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
build:
12+
strategy:
13+
matrix:
14+
go: ['1.11', '1.12', '1.13', '1.14', '1.15']
15+
os: ['ubuntu-20.04']
16+
17+
name: ${{ matrix.os }} / Go ${{ matrix.go }}
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: Set up Go 1.x
21+
uses: actions/setup-go@v2
22+
with:
23+
go-version: ${{ matrix.go }}
24+
25+
- name: Check out code into the Go module directory
26+
uses: actions/checkout@v2
27+
28+
- name: Build
29+
run: make build

0 commit comments

Comments
 (0)