Skip to content

Commit 619d5c4

Browse files
committed
Add github action to run tests
1 parent aee87e8 commit 619d5c4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
push:
3+
pull_request:
4+
types: [synchronize]
5+
schedule:
6+
- cron: "0 0 1,11,21 * *"
7+
name: Test
8+
jobs:
9+
test:
10+
strategy:
11+
matrix:
12+
go-version: [1.13.x, 1.14.x, 1.15.x, tip]
13+
go-flags: ["", "-trimpath"]
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
runs-on: ${{ matrix.os }}
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: Test
24+
env:
25+
GOFLAGS: ${{ matrix.go-flags }}
26+
run: go test ./...

0 commit comments

Comments
 (0)