Skip to content

Commit 302eda8

Browse files
committed
Split schema validation workflow into two jobs
This ensures that we see validation results from both schemas
1 parent a57c308 commit 302eda8

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/schema-validation.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
- dev-2.x
77

88
jobs:
9-
validate-gtfs:
9+
validate-gtfs-schema:
1010
if: github.repository_owner == 'opentripplanner'
11-
name: Validate GraphQL schema changes
11+
name: Validate GTFS GraphQL schema changes
1212
runs-on: ubuntu-latest
1313

1414
steps:
@@ -31,6 +31,28 @@ jobs:
3131
- name: Validate GTFS GraphQL schema changes
3232
run: |
3333
graphql-inspector diff 'git:origin/dev-2.x:application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls' 'application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls'
34+
35+
validate-transmodel-schema:
36+
if: github.repository_owner == 'opentripplanner'
37+
name: Validate Transmodel GraphQL schema changes
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
44+
- name: 'Fetch dev.2.x for diffing'
45+
run: |
46+
git fetch origin dev-2.x --depth 1
47+
48+
49+
- uses: actions/setup-node@v4
50+
with:
51+
node-version: 22
52+
53+
- name: Install GraphQL Inspector
54+
run: |
55+
npm i --global @graphql-inspector/ci graphql @graphql-inspector/diff-command @graphql-inspector/graphql-loader @graphql-inspector/git-loader
3456
3557
- name: Validate Transmodel GraphQL schema changes
3658
run: |

0 commit comments

Comments
 (0)