Skip to content

Commit 7788f1d

Browse files
committed
Add workflow for validating schema changes
1 parent 1030408 commit 7788f1d

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Validate schema changes
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- dev-2.x
7+
8+
jobs:
9+
validate-gtfs:
10+
if: github.repository_owner == 'opentripplanner'
11+
name: Validate GraphQL schema changes
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
checks: write
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- uses: kamilkisiela/graphql-inspector@master
23+
with:
24+
name: Validate GTFS GraphQL schema changes
25+
schema: 'dev-2.x:application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls'
26+
annotations: false
27+
fail-on-breaking: true
28+
rules: |
29+
ignoreDescriptionChanges
30+
31+
- uses: kamilkisiela/graphql-inspector@master
32+
with:
33+
name: Validate Transmodel GraphQL schema changes
34+
schema: 'dev-2.x:application/src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql'
35+
annotations: false
36+
fail-on-breaking: true
37+
rules: |
38+
ignoreDescriptionChanges

0 commit comments

Comments
 (0)