Rename idl2 -> flyteidl2 and many fixes in generation (go, python) #65
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: Check Generated Files | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
check-generate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set fallback version | |
run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0" >> $GITHUB_ENV | |
- name: Set up the environment | |
uses: ./.github/actions/setup-python-env | |
with: | |
python-version: '3.12' | |
working-directory: './gen/python' | |
- name: Setup Buf CLI | |
uses: bufbuild/buf-setup-action@v1 # Install the Buf CLI | |
with: | |
version: 'latest' # Or specify a precise version like '1.56.0' | |
- name: Run make gen | |
run: make gen | |
- name: Check for changes | |
run: | | |
git diff --exit-code || (echo 'Generated files are out of date. Run make generate and commit changes.' && exit 1) | |