Skip to content

Commit aec77d6

Browse files
authored
Merge pull request #1043 from mohamedawnallah/add-tidy-module-check-to-workflow
workflows: check go modules tidiness in CI workflow
2 parents 43c1d81 + a52e892 commit aec77d6

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
- name: Check code format
4949
run: make fmt-check
5050

51+
- name: Check go modules tidiness
52+
run: make tidy-module-check
53+
5154
- name: Check RPC format
5255
run: make rpc-check
5356

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ tidy-module-check: tidy-module
164164
unit-race \
165165
fmt \
166166
fmt-check \
167+
tidy-module \
168+
tidy-module-check \
167169
lint \
168170
rpc \
169171
rpc-check \

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ require (
3030
golang.org/x/sync v0.7.0
3131
golang.org/x/term v0.19.0
3232
google.golang.org/grpc v1.59.0
33+
google.golang.org/protobuf v1.33.0
3334
)
3435

3536
require (
@@ -50,7 +51,6 @@ require (
5051
golang.org/x/sys v0.19.0 // indirect
5152
golang.org/x/text v0.14.0 // indirect
5253
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect
53-
google.golang.org/protobuf v1.33.0 // indirect
5454
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
5555
gopkg.in/yaml.v3 v3.0.1 // indirect
5656
)

0 commit comments

Comments
 (0)