diff --git a/.github/workflows/generator.yaml b/.github/workflows/generator.yaml index 5a9c7fe13..c8ec9c80d 100644 --- a/.github/workflows/generator.yaml +++ b/.github/workflows/generator.yaml @@ -25,5 +25,7 @@ jobs: generator/go.sum - name: Display Go version run: go version - - run: go mod tidy + - run: go fmt ./... - run: go test ./... + - name: Detect Changes + run: git diff --exit-code diff --git a/generator/all_test.go b/generator/all_test.go index f1d21a36d..c75e3cb26 100644 --- a/generator/all_test.go +++ b/generator/all_test.go @@ -33,11 +33,7 @@ func TestVet(t *testing.T) { } func TestGoModTidy(t *testing.T) { - rungo(t, "mod", "tidy") -} - -func TestGoFmt(t *testing.T) { - rungo(t, "fmt") + rungo(t, "mod", "tidy", "-diff") } func TestGovulncheck(t *testing.T) { diff --git a/generator/go.mod b/generator/go.mod index f51ee5eef..370449fcd 100644 --- a/generator/go.mod +++ b/generator/go.mod @@ -4,7 +4,6 @@ go 1.23.2 require ( github.com/cbroglie/mustache v1.4.0 - github.com/google/go-cmp v0.6.0 github.com/iancoleman/strcase v0.3.0 google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38 google.golang.org/protobuf v1.35.1