Skip to content

Commit 0601aa3

Browse files
committed
feat: add go mod tidy verification step
1 parent 44a36b1 commit 0601aa3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
run: |
3333
git diff --exit-code || (echo "Generated mocks are not up-to-date. Please run 'go generate ./...' locally and push the updated files." && exit 1)
3434
35+
- name: Verify go.mod is tidy
36+
run: |
37+
go mod tidy
38+
git diff --exit-code || (echo "go.mod or go.sum is not tidy. Please run 'go mod tidy' locally and push the updated files." && exit 1)
39+
3540
- name: Run golangci-lint
3641
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
3742
with:

0 commit comments

Comments
 (0)