File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 6
6
name : Module build
7
7
runs-on : ubuntu-latest
8
8
strategy :
9
+ fail-fast : false
9
10
matrix :
10
- go : [1.12, 1.13, 1.14 ]
11
+ go : [1.12, 1.16 ]
11
12
12
13
steps :
13
14
- name : Set up Go ${{ matrix.go }}
14
15
uses : actions/setup-go@v1
15
16
with :
16
17
go-version : ${{ matrix.go }}
17
18
19
+ - name : Install golint
20
+ run : go get golang.org/x/lint/golint
21
+
18
22
- name : Check out code
19
23
uses : actions/checkout@v2
20
24
21
25
- name : Run Linter
22
26
run : |
23
- go get -u golang.org/x/lint/golint
24
27
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
25
28
$GOLINT -set_exit_status ./...
26
29
@@ -44,12 +47,13 @@ jobs:
44
47
runs-on : ubuntu-latest
45
48
env :
46
49
GOPATH : ${{ github.workspace }}/go
50
+ GO111MODULE : off
47
51
48
52
steps :
49
- - name : Set up Go 1.12
53
+ - name : Set up Go 1.16
50
54
uses : actions/setup-go@v1
51
55
with :
52
- go-version : 1.12
56
+ go-version : 1.16
53
57
54
58
- name : Check out code into GOPATH
55
59
uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -44,14 +44,16 @@ jobs:
44
44
with :
45
45
go-version : 1.12
46
46
47
+ - name : Install golint
48
+ run : go get golang.org/x/lint/golint
49
+
47
50
- name : Check out code
48
51
uses : actions/checkout@v2
49
52
with :
50
53
ref : ${{ github.event.client_payload.ref || github.ref }}
51
54
52
55
- name : Run Linter
53
56
run : |
54
- go get -u golang.org/x/lint/golint
55
57
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
56
58
$GOLINT -set_exit_status ./...
57
59
You can’t perform that action at this time.
0 commit comments