Skip to content

Commit 9d740db

Browse files
committed
Add workflow for schema change validation
1 parent 1030408 commit 9d740db

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Diff for: .github/workflows/schema-validation.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Validate schema changes
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dev-2.x
7+
8+
jobs:
9+
validate-gtfs:
10+
name: Validate GraphQL schema changes
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- uses: kamilkisiela/graphql-inspector@master
18+
with:
19+
name: Validate GTFS GraphQL schema changes
20+
schema: 'dev-2.x:application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls'
21+
annotations: true
22+
fail-on-breaking: true
23+
rules: |
24+
ignoreDescriptionChanges
25+
26+
- uses: kamilkisiela/graphql-inspector@master
27+
with:
28+
name: Validate Transmodel GraphQL schema changes
29+
schema: 'dev-2.x:application/src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql'
30+
annotations: true
31+
fail-on-breaking: true
32+
rules: |
33+
ignoreDescriptionChanges

0 commit comments

Comments
 (0)