Skip to content

Commit

Permalink
check generated code is up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-sigurd committed Jun 11, 2024
1 parent f453ee8 commit dd402b0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test-quilt3-admin-codegen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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

0 comments on commit dd402b0

Please sign in to comment.