Skip to content

Commit 135d00e

Browse files
show generated source changes in CI failure if found
Signed-off-by: Michael Valdron <[email protected]>
1 parent 94a6bc4 commit 135d00e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ jobs:
4444

4545
- name: Check index-server code generation
4646
run: |
47-
cd index/server
4847
export GOPATH=$(go env GOPATH)
4948
go install github.com/deepmap/oapi-codegen/cmd/[email protected]
50-
bash codegen.sh
49+
bash index/server/codegen.sh
5150
GEN_DIFFS=$(git diff --name-only --diff-filter=ACMRT | grep .gen.go$ | xargs)
5251
if [[ ! -z "${GEN_DIFFS}" ]]
5352
then
5453
echo "generated source does not match current changes "
54+
for f in ${GEN_DIFFS}; do git diff HEAD -- $f; done
5555
exit 1
5656
fi
5757

0 commit comments

Comments
 (0)