File tree Expand file tree Collapse file tree 2 files changed +48
-14
lines changed
Expand file tree Collapse file tree 2 files changed +48
-14
lines changed Original file line number Diff line number Diff line change 1+ name : Go
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ strategy :
16+ matrix :
17+ go :
18+ - ' 1.11'
19+ - ' 1.12'
20+ - ' 1.13'
21+ - ' 1.14'
22+ - ' 1.15'
23+ - ' 1.16'
24+ - ' 1.17'
25+
26+ steps :
27+ - uses : actions/checkout@v2
28+
29+ - name : Set up Go
30+ uses : actions/setup-go@v2
31+ with :
32+ go-version : ' ${{ matrix.go }}'
33+
34+ - name : ' Build'
35+ run : go build -v ./...
36+
37+ - name : ' Test'
38+ run : go test -v ./...
39+
40+ - name : ' Vet'
41+ run : go vet ./...
42+
43+ - name : ' Staticcheck'
44+ # staticcheck requires go1.14.
45+ if : ${{ matrix.go != '1.11' && matrix.go != '1.12' && matrix.go != '1.13' }}
46+ run : |
47+ go get honnef.co/go/tools/cmd/staticcheck
48+ staticcheck ./...
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments