check generated code is up-to-date #1
Workflow file for this run
This file contains 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
on: | |
push: | |
paths: | |
- '.github/workflows/test-quilt3-admin-codegen.yaml' | |
- 'api/python/quilt3-admin/**' | |
- 'api/python/quilt3/admin/_graphql_client/**' | |
pull_request: | |
paths: | |
- '.github/workflows/test-quilt3-admin-codegen.yaml' | |
- 'api/python/quilt3-admin/**' | |
- 'api/python/quilt3/admin/_graphql_client/**' | |
merge_group: | |
jobs: | |
test-quilt3-admin-codegen: | |
name: test quilt3.admin generated code is up-to-date | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./api/python/quilt3-admin | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: '.python-version' | |
cache: 'pip' | |
cache-dependency-path: 'requirements.txt' | |
- run: pip install -r requirements.txt | |
- run: rm -r ../quilt3/admin/_graphql_client | |
- run: ariadne-codegen | |
- name: Check for changes | |
run: git diff --exit-code |