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:
1717 with :
1818 go-version : ${{ matrix.go-version }}
1919
20+ - name : Checkout code
21+ uses : actions/checkout@v2
22+
2023 - name : Restore Cache
21- if : matrix.os != 'ubuntu-latest' && matrix.go-version != '1.15.x'
2224 uses : actions/cache@v2
2325 with :
2426 path : ~/go/pkg/mod
2527 key : ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
2628 restore-keys : |
2729 ${{ runner.os }}-v1-go-
2830
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-
3831 - name : Test
3932 run : go test -race -covermode=atomic -coverprofile="profile.cov" ./...
4033
4336 uses : shogo82148/actions-goveralls@v1
4437 with :
4538 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