From 89af1a519f5d2098983b800eeb2f1de7c5accfb7 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Tue, 29 Apr 2025 23:09:52 -0700 Subject: [PATCH] Ensure `go.mod`/`go.sum` remain tidy `go mod tidy -diff` ensures the `go.mod` and `go.sum` files remain correct. If anything is amiss, it will print the diff along with an error code and then exit. --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 432b571..56f255f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,5 +48,8 @@ jobs: with: go-version: '1.22' + - name: Ensure go.mod / go.sum remain tidy + run: go mod tidy -diff + - name: Run Go tests run: go test ./protoc-gen-twirp_ruby/... ./internal/gen/typemap/...