Skip to content

Commit c7ffd14

Browse files
authored
Create go.yml
1 parent 664df8a commit c7ffd14

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/go.yml

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

0 commit comments

Comments
 (0)