From 4772c8c86db5330f14aba52f4f54fa80874d9bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Fri, 16 May 2025 10:33:10 +0200 Subject: [PATCH] chore: add support for testing that go.mod is tidy --- .github/workflows/unit-tests.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 26f2564065..fb9f53f729 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -21,6 +21,10 @@ jobs: uses: hashicorp/setup-terraform@v3 - name: Build binaries run: make build + - name: Verify go.mod is tidy + run: | + go mod tidy + git diff --exit-code - name: Run unit tests run: make test - name: Check with go vet