Skip to content

Commit 3a47b37

Browse files
committed
Add Github Actions Test workflow
1 parent e81e8f5 commit 3a47b37

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
fail-fast: false
12+
matrix:
13+
go-version:
14+
- 1.13.x
15+
- 1.14.x
16+
- 1.15.x
17+
- 1.16.x
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- name: Install Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: ${{ matrix.go-version }}
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
- name: Test
28+
run: go test ./...

0 commit comments

Comments
 (0)