Skip to content

Commit ed1b770

Browse files
committed
Split schema validation workflow into two jobs
This ensures that we see validation results from both schemas
1 parent 95e9d70 commit ed1b770

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/schema-validation.yml

+26-6
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,52 @@ 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
13-
13+
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
17+
1818
- name: 'Fetch dev.2.x for diffing'
1919
run: |
2020
git fetch origin dev-2.x --depth 1
2121
22-
2322
- uses: actions/setup-node@v4
2423
with:
2524
node-version: 22
2625

2726
- name: Install GraphQL Inspector
2827
run: |
2928
npm i --global @graphql-inspector/ci graphql @graphql-inspector/diff-command @graphql-inspector/graphql-loader @graphql-inspector/git-loader
30-
29+
3130
- name: Validate GTFS GraphQL schema changes
3231
run: |
3332
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'
3433
34+
validate-transmodel-schema:
35+
if: github.repository_owner == 'opentripplanner'
36+
name: Validate Transmodel GraphQL schema changes
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
43+
- name: 'Fetch dev.2.x for diffing'
44+
run: |
45+
git fetch origin dev-2.x --depth 1
46+
47+
- uses: actions/setup-node@v4
48+
with:
49+
node-version: 22
50+
51+
- name: Install GraphQL Inspector
52+
run: |
53+
npm i --global @graphql-inspector/ci graphql @graphql-inspector/diff-command @graphql-inspector/graphql-loader @graphql-inspector/git-loader
54+
3555
- name: Validate Transmodel GraphQL schema changes
3656
run: |
3757
graphql-inspector diff 'git:origin/dev-2.x:application/src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql' 'application/src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql'

0 commit comments

Comments
 (0)