Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Check generated code #658

Merged
merged 13 commits into from
Jul 2, 2024
14 changes: 14 additions & 0 deletions .github/workflows/check-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,17 @@ jobs:
git status --porcelain --untracked-files=no
exit 1
fi

- name: Check generated code
if: success()
run: |
pip install -r code_generation/requirements.txt
python code_generation/code_gen.py
if [ -n "$(git status --porcelain)" ]; then
echo "The following files are outdated or were manually updated:"
figueroa1395 marked this conversation as resolved.
Show resolved Hide resolved
git status --porcelain
exit 1
else
echo "All the generated files are up to date."
fi

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MPL-2.0

// This header file is automatically generated. DO NOT modify it manually!
// This file is automatically generated. DO NOT modify it manually!

// clang-format off

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MPL-2.0

// This header file is automatically generated. DO NOT modify it manually!
// This file is automatically generated. DO NOT modify it manually!

// clang-format off

Expand Down