fix(ci): make the job fail in case of not up to date cpp files

This commit is contained in:
rudy
2022-05-10 16:16:02 +02:00
committed by rudy-6-4
parent ec36b4b4e7
commit 9e5467294f

View File

@@ -47,4 +47,4 @@ test-ci:
# force regeneration of sources
rm -rf $(INTERFACE_HEADER) $(INTERFACE_CPP) $(INTERFACE_HEADER_ORIG) $(INTERFACE_CPP_ORIG)
$(MAKE) CARGO_PROFILE=dev PROFILE_SUBDIR=debug test
git diff --check src/cpp || echo Please commit the new version of generated files
git diff --exit-code src/cpp || (echo Please commit the new version of generated files && exit 1)