feat: add substrait spec version to plan #48
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Generation Check | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| codegen-check: | |
| name: Verify Code Generation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: Run code generation in devcontainer | |
| uses: devcontainers/ci@v0.3 | |
| with: | |
| runCmd: | | |
| # fetch submodule tags since actions/checkout does not | |
| git submodule foreach 'git fetch --unshallow || true' | |
| # Ensure dependencies are installed | |
| uv sync --extra test --extra gen_proto | |
| # Run all code generation steps | |
| make codegen | |
| - name: Check for uncommitted changes | |
| run: | | |
| # Check for diffs, ignoring timestamp lines | |
| if ! git diff --quiet --exit-code src/substrait/gen/; then | |
| echo "Code generation produced changes. Generated code is out of sync!" | |
| echo "" | |
| git diff src/substrait/gen/ | |
| echo "" | |
| echo "To fix this, run:" | |
| echo " make codegen" | |
| echo "Then commit the changes." | |
| exit 1 | |
| fi |