Skip to content

Commit 7f2dc47

Browse files
authored
Added github action for testing
1 parent b7c2f20 commit 7f2dc47

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Go Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
go-version: [1.13.x, 1.14.x]
14+
platform: [ubuntu-latest, macos-latest, windows-latest]
15+
runs-on: ${{ matrix.platform }}
16+
steps:
17+
- name: Install Go
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: ${{ matrix.go-version }}
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
- name: Go Version
24+
run: go version
25+
- name: Test
26+
run: go test -v

0 commit comments

Comments
 (0)