File tree 1 file changed +26
-6
lines changed
1 file changed +26
-6
lines changed Original file line number Diff line number Diff line change 6
6
- dev-2.x
7
7
8
8
jobs :
9
- validate-gtfs :
9
+ validate-gtfs-schema :
10
10
if : github.repository_owner == 'opentripplanner'
11
- name : Validate GraphQL schema changes
11
+ name : Validate GTFS GraphQL schema changes
12
12
runs-on : ubuntu-latest
13
-
13
+
14
14
steps :
15
15
- name : Checkout
16
16
uses : actions/checkout@v4
17
-
17
+
18
18
- name : ' Fetch dev.2.x for diffing'
19
19
run : |
20
20
git fetch origin dev-2.x --depth 1
21
21
22
-
23
22
- uses : actions/setup-node@v4
24
23
with :
25
24
node-version : 22
26
25
27
26
- name : Install GraphQL Inspector
28
27
run : |
29
28
npm i --global @graphql-inspector/ci graphql @graphql-inspector/diff-command @graphql-inspector/graphql-loader @graphql-inspector/git-loader
30
-
29
+
31
30
- name : Validate GTFS GraphQL schema changes
32
31
run : |
33
32
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
33
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
+
35
55
- name : Validate Transmodel GraphQL schema changes
36
56
run : |
37
57
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'
You can’t perform that action at this time.
0 commit comments