@@ -37,15 +37,17 @@ jobs:
37
37
steps :
38
38
- name : Checkout Repository
39
39
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
40
+
40
41
- name : Setup Golang Environment
41
- uses : actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5 .0
42
+ uses : actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0 .0
42
43
with :
43
44
go-version-file : go.mod
44
- cache : true
45
+
45
46
- name : Output Variables
46
47
id : vars
47
48
run : |
48
49
echo "go_path=$(go env GOPATH)" >> $GITHUB_OUTPUT
50
+
49
51
- name : Check if go.mod and go.sum are up to date
50
52
run : |
51
53
go mod tidy && git diff --exit-code -- go.mod go.sum
@@ -57,13 +59,15 @@ jobs:
57
59
steps :
58
60
- name : Checkout Repository
59
61
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
62
+
60
63
- name : Setup Golang Environment
61
- uses : actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5 .0
64
+ uses : actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0 .0
62
65
with :
63
66
go-version-file : go.mod
64
- cache : true
67
+
65
68
- name : Run Tests
66
69
run : make unit-test
70
+
67
71
- name : Upload Coverage Report
68
72
uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
69
73
with :
@@ -93,11 +97,11 @@ jobs:
93
97
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
94
98
with :
95
99
fetch-depth : 0
100
+
96
101
- name : Setup Golang Environment
97
- uses : actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5 .0
102
+ uses : actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0 .0
98
103
with :
99
104
go-version-file : go.mod
100
- cache : true
101
105
102
106
- name : Publish release on tag
103
107
uses : actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
0 commit comments