Skip to content

Commit fa21419

Browse files
remyleoneyfodil
authored andcommitted
chore: add support for testing that go.mod is tidy (#3089)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent 7f24aae commit fa21419

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
uses: hashicorp/setup-terraform@v3
2222
- name: Build binaries
2323
run: make build
24+
- name: Verify go.mod is tidy
25+
run: |
26+
go mod tidy
27+
git diff --exit-code
2428
- name: Run unit tests
2529
run: make test
2630
- name: Check with go vet

0 commit comments

Comments
 (0)