Skip to content

Commit 1029f53

Browse files
authoredJul 6, 2020
Add testing action
Run tests on GH Actions
1 parent 6615cdb commit 1029f53

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
 

‎.github/workflows/test.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
test:
12+
name: Build
13+
strategy:
14+
matrix:
15+
go-versions: [1.12.x, 1.13.x, 1.14.x]
16+
platform: [ubuntu-latest]
17+
runs-on: ${{ matrix.platform }}
18+
steps:
19+
- name: Install Go
20+
uses: actions/setup-go@v1
21+
with:
22+
go-version: ${{ matrix.go-version }}
23+
24+
- name: Check out code into the Go module directory
25+
uses: actions/checkout@v2
26+
27+
- name: Build
28+
run: go build -v ./...
29+
30+
- name: Test
31+
run: go test -v ./...

0 commit comments

Comments
 (0)
Please sign in to comment.