File tree Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change 9
9
branches : [ main ]
10
10
11
11
jobs :
12
-
13
12
test :
14
13
name : Test
15
14
runs-on : ubuntu-latest
16
15
steps :
17
-
18
16
- name : Check out code into the Go module directory
19
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v4
20
18
21
19
- name : Set up Go
22
20
uses : actions/setup-go@v5
23
21
with :
24
22
go-version-file : " go.mod"
25
- id : go
26
-
27
- - name : Cache go module cache
28
- id : cache-go-mod
29
- uses : actions/cache@v3
30
- with :
31
- path : ~/go/pkg/mod
32
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
33
- restore-keys : |
34
- ${{ runner.os }}-go-
35
-
36
- - name : Get dependencies
37
- run : go mod download
38
23
39
24
- name : check
40
25
run : make fix
@@ -45,23 +30,22 @@ jobs:
45
30
- name : Test Sanity
46
31
run : make test-sanity
47
32
48
- - uses : shogo82148/actions-goveralls@v1
33
+ - uses : codecov/codecov-action@v3
49
34
with :
50
- path-to-profile : cover.out
35
+ files : cover.out
36
+ functionalities : fixes
51
37
52
38
lint :
53
39
name : Lint
54
40
runs-on : ubuntu-latest
55
41
steps :
56
-
57
42
- name : Check out code into the Go module directory
58
43
uses : actions/checkout@v2
59
44
60
45
- name : Set up Go
61
46
uses : actions/setup-go@v5
62
47
with :
63
48
go-version-file : " go.mod"
64
- id : go
65
49
66
50
- name : Lint
67
51
uses : golangci/golangci-lint-action@v3
73
57
if : github.event_name == 'pull_request'
74
58
runs-on : ubuntu-latest
75
59
steps :
76
-
77
60
- name : Check out code into the Go module directory
78
61
uses : actions/checkout@v2
79
62
with :
83
66
uses : actions/setup-go@v5
84
67
with :
85
68
go-version-file : " go.mod"
86
- id : go
87
69
88
70
- name : Run go-apidiff
89
71
uses : joelanford/go-apidiff@main
You can’t perform that action at this time.
0 commit comments