File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -17,24 +17,17 @@ jobs:
17
17
with :
18
18
go-version : ${{ matrix.go-version }}
19
19
20
+ - name : Checkout code
21
+ uses : actions/checkout@v2
22
+
20
23
- name : Restore Cache
21
- if : matrix.os != 'ubuntu-latest' && matrix.go-version != '1.15.x'
22
24
uses : actions/cache@v2
23
25
with :
24
26
path : ~/go/pkg/mod
25
27
key : ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
26
28
restore-keys : |
27
29
${{ runner.os }}-v1-go-
28
30
29
- - name : Checkout code
30
- uses : actions/checkout@v2
31
-
32
- - name : lint
33
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.15.x'
34
- uses : golangci/golangci-lint-action@v2
35
- with :
36
- version : v1.31
37
-
38
31
- name : Test
39
32
run : go test -race -covermode=atomic -coverprofile="profile.cov" ./...
40
33
43
36
uses : shogo82148/actions-goveralls@v1
44
37
with :
45
38
path-to-profile : profile.cov
39
+
40
+ golangci :
41
+ name : lint
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - uses : actions/checkout@v2
45
+ - name : golangci-lint
46
+ uses : golangci/golangci-lint-action@v2
47
+ with :
48
+ version : v1.31
You can’t perform that action at this time.
0 commit comments