GitHub Action
Run Schema Gateway on every pull request.
The free action turns structured-output portability into a visible CI artifact: lint one schema across provider targets, compare baseline versus candidate when you have both, and publish a job summary with the first generated request fragment before the merge lands.
PR gate
provider portability becomes reviewable in CI
Regression signal
baseline-versus-candidate verdict when you have both schemas
Generated fragment
the first provider request body is written into the artifact
name: Schema portability
on:
pull_request:
push:
branches: [main]
jobs:
check-schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: sravan27/schema-gateway/.github/actions/portability-check@v0.1.3
with:
baseline-schema: schema.prev.json
schema: schema.json
targets: openai,gemini,anthropic,ollama