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 66 name : Module build
77 runs-on : ubuntu-latest
88 strategy :
9+ fail-fast : false
910 matrix :
10- go : [1.12, 1.13, 1.14 ]
11+ go : [1.12, 1.16 ]
1112
1213 steps :
1314 - name : Set up Go ${{ matrix.go }}
1415 uses : actions/setup-go@v1
1516 with :
1617 go-version : ${{ matrix.go }}
1718
19+ - name : Install golint
20+ run : go get golang.org/x/lint/golint
21+
1822 - name : Check out code
1923 uses : actions/checkout@v2
2024
2125 - name : Run Linter
2226 run : |
23- go get -u golang.org/x/lint/golint
2427 GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
2528 $GOLINT -set_exit_status ./...
2629
@@ -44,12 +47,13 @@ jobs:
4447 runs-on : ubuntu-latest
4548 env :
4649 GOPATH : ${{ github.workspace }}/go
50+ GO111MODULE : off
4751
4852 steps :
49- - name : Set up Go 1.12
53+ - name : Set up Go 1.16
5054 uses : actions/setup-go@v1
5155 with :
52- go-version : 1.12
56+ go-version : 1.16
5357
5458 - name : Check out code into GOPATH
5559 uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -44,14 +44,16 @@ jobs:
4444 with :
4545 go-version : 1.12
4646
47+ - name : Install golint
48+ run : go get golang.org/x/lint/golint
49+
4750 - name : Check out code
4851 uses : actions/checkout@v2
4952 with :
5053 ref : ${{ github.event.client_payload.ref || github.ref }}
5154
5255 - name : Run Linter
5356 run : |
54- go get -u golang.org/x/lint/golint
5557 GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
5658 $GOLINT -set_exit_status ./...
5759
You can’t perform that action at this time.
0 commit comments