Skip to content

Commit

Permalink
Add workflow for schema change validation
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Jan 17, 2025
1 parent 1030408 commit 7aec4c2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/schema-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Validate schema changes

on:
pull_request:
branches:
- dev-2.x

jobs:
validate-gtfs:
name: Validate GraphQL schema changes
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: kamilkisiela/graphql-inspector@master
with:
name: Validate GTFS GraphQL schema changes
schema: 'dev-2.x:application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls'
annotations: true
fail-on-breaking: true
ignoreDescriptionChanges: true

- uses: kamilkisiela/graphql-inspector@master
with:
name: Validate Transmodel GraphQL schema changes
schema: 'dev-2.x:application/src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql'
annotations: true
fail-on-breaking: true
ignoreDescriptionChanges: true

0 comments on commit 7aec4c2

Please sign in to comment.