Skip to content

Commit 62075cf

Browse files
authored
Set up GitHub actions
1 parent 1d6c82e commit 62075cf

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/go.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Go
2+
on: [push]
3+
jobs:
4+
5+
vet-test:
6+
name: Vet and test
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- name: Set up Go 1.13
11+
uses: actions/setup-go@v1
12+
with:
13+
go-version: 1.13
14+
id: go
15+
16+
- name: Check out code into the Go module directory
17+
uses: actions/checkout@v1
18+
19+
- name: Get dependencies
20+
run: go mod download
21+
22+
- name: Vet
23+
run: go vet $(go list ./...)
24+
25+
- name: Test
26+
run: go test -race -v $(go list ./...)
27+
28+
29+

0 commit comments

Comments
 (0)