From 135d00eea7638c34f0d51f6449e53d79962eab0c Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Wed, 18 Oct 2023 12:15:52 -0400 Subject: [PATCH] show generated source changes in CI failure if found Signed-off-by: Michael Valdron --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 98789b2d8..9f407018c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,14 +44,14 @@ jobs: - name: Check index-server code generation run: | - cd index/server export GOPATH=$(go env GOPATH) go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.12.4 - bash codegen.sh + bash index/server/codegen.sh GEN_DIFFS=$(git diff --name-only --diff-filter=ACMRT | grep .gen.go$ | xargs) if [[ ! -z "${GEN_DIFFS}" ]] then echo "generated source does not match current changes " + for f in ${GEN_DIFFS}; do git diff HEAD -- $f; done exit 1 fi