-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for validating schema changes
- Loading branch information
1 parent
1030408
commit 01cd2ed
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Validate schema changes | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
branches: | ||
- dev-2.x | ||
|
||
jobs: | ||
validate-gtfs: | ||
if: github.repository_owner == 'opentripplanner' | ||
name: Validate GraphQL schema changes | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
checks: write | ||
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: false | ||
fail-on-breaking: true | ||
rules: | | ||
ignoreDescriptionChanges | ||
- 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: false | ||
fail-on-breaking: true | ||
rules: | | ||
ignoreDescriptionChanges |