18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- name : Checkout
21
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
22
22
- name : Run Check License
23
23
run : hack/make-rules/check_license.sh
24
24
@@ -28,17 +28,17 @@ jobs:
28
28
- name : Checkout
29
29
uses : actions/setup-go@v3
30
30
with :
31
- submodules : true
31
+ submodules :
32
32
- name : Setup Go
33
33
uses : actions/checkout@v3
34
34
with :
35
35
go-version : ${{ env.GO_VERSION }}
36
+ cache : false
36
37
- name : Lint golang code
37
38
uses : golangci/golangci-lint-action@v3
38
39
with :
39
40
version : ${{ env.GOLANGCI_VERSION }}
40
- args : --timeout=15m
41
-
41
+ args : --disable-all -E deadcode -E gofmt -E goimports -E ineffassign -E misspell -E vet --timeout=15m
42
42
markdownlint-misspell-shellcheck :
43
43
runs-on : ubuntu-latest
44
44
# this image is build from Dockerfile
@@ -54,17 +54,17 @@ jobs:
54
54
build-and-test :
55
55
runs-on : ubuntu-latest
56
56
steps :
57
- - uses : actions/checkout@v2
57
+ - uses : actions/checkout@v3
58
58
with :
59
59
submodules : true
60
60
- name : Fetch History
61
61
run : git fetch --prune --unshallow
62
62
- name : Setup Go
63
- uses : actions/setup-go@v2
63
+ uses : actions/setup-go@v3
64
64
with :
65
65
go-version : ${{ env.GO_VERSION }}
66
66
- name : Cache Go Dependencies
67
- uses : actions/cache@v2
67
+ uses : actions/cache@v3
68
68
with :
69
69
path : ~/go/pkg/mod
70
70
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
74
74
- name : Run test
75
75
run : make test
76
76
- name : Upload test coverage
77
- uses : codecov/codecov-action@v2
77
+ uses : codecov/codecov-action@v3
78
78
with :
79
79
token : ${{ secrets.CODECOV_TOKEN }}
80
80
files : cover.out
0 commit comments