We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51f5806 commit 702c9f2Copy full SHA for 702c9f2
.github/workflows/go.yml
@@ -0,0 +1,36 @@
1
+name: Go
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
8
9
+jobs:
10
11
+ build:
12
+ name: Build
13
+ runs-on: ubuntu-latest
14
+ steps:
15
16
+ - name: Set up Go 1.x
17
+ uses: actions/setup-go@v2
18
+ with:
19
+ go-version: ^1.13
20
21
+ - name: Check out code into the Go module directory
22
+ uses: actions/checkout@v2
23
24
+ - name: Get dependencies
25
+ run: |
26
+ go get -v -t -d ./...
27
+ if [ -f Gopkg.toml ]; then
28
+ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
29
+ dep ensure
30
+ fi
31
32
+ - name: Build
33
+ run: go build -v .
34
35
+ - name: Test
36
+ run: go test -race -v .
0 commit comments