@@ -11,10 +11,10 @@ jobs:
11
11
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
14
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
15
15
16
16
- name : Set up Go
17
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # ratchet:actions/setup-go@v4
17
+ uses : actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # ratchet:actions/setup-go@v5
18
18
with :
19
19
go-version : ' 1.21'
20
20
42
42
-args -test.gocoverdir=/tmp/unit/
43
43
44
44
- name : Upload cover profiles
45
- uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # ratchet:actions/upload-artifact@v3
45
+ uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # ratchet:actions/upload-artifact@v4
46
46
with :
47
47
name : unit-test
48
48
path : /tmp/unit/
@@ -51,10 +51,10 @@ jobs:
51
51
52
52
runs-on : ubuntu-latest
53
53
steps :
54
- - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
54
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
55
55
56
56
- name : Set up Go
57
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # ratchet:actions/setup-go@v4
57
+ uses : actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # ratchet:actions/setup-go@v5
58
58
with :
59
59
go-version : ' 1.21'
60
60
@@ -83,47 +83,63 @@ jobs:
83
83
-cover \
84
84
-v main_test.go \
85
85
-args -test.gocoverdir=/tmp/integration/
86
-
87
86
- name : Upload cover profiles
88
- uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # ratchet:actions/upload-artifact@v3
87
+ uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # ratchet:actions/upload-artifact@v4
89
88
with :
90
89
name : integration-test
91
90
path : /tmp/integration/
92
-
93
91
code-coverage :
94
-
95
92
runs-on : ubuntu-latest
96
- needs : [unit-test,integration-test]
93
+ needs : [unit-test, integration-test]
97
94
steps :
98
- - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
99
-
100
- - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3
95
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
96
+ - uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # ratchet:actions/download-artifact@v4
101
97
with :
102
98
name : unit-test
103
99
path : /tmp/unit-test
104
-
105
- - uses : actions/download-artifact@v3
100
+ - uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # ratchet:actions/download-artifact@v4
106
101
with :
107
102
name : integration-test
108
103
path : /tmp/integration-test
109
-
110
104
- name : list files
111
- run : |
105
+ run : |2
106
+
112
107
ls -lah /tmp/unit-test
113
108
ls -lah /tmp/integration-test
114
-
115
109
- name : Set up Go
116
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # ratchet:actions/setup-go@v4
110
+ uses : actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # ratchet:actions/setup-go@v5
117
111
with :
118
112
go-version : ' 1.21'
119
113
120
114
- name : Calculate total coverage
121
- run : |
115
+ run : |2
122
116
go tool \
123
117
covdata \
124
118
textfmt \
125
119
-i=/tmp/unit-test,/tmp/integration-test \
126
- -o code-coverage
120
+ -o= code-coverage
127
121
go tool \
128
122
cover \
129
123
-func code-coverage
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
0 commit comments