From 7aec4c27947d8075c4f8d082077c2c8b12ad6a04 Mon Sep 17 00:00:00 2001 From: Joel Lappalainen Date: Fri, 17 Jan 2025 15:03:53 +0200 Subject: [PATCH] Add workflow for schema change validation --- .github/workflows/schema-validation.yml | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/schema-validation.yml diff --git a/.github/workflows/schema-validation.yml b/.github/workflows/schema-validation.yml new file mode 100644 index 00000000000..c0de3ec7105 --- /dev/null +++ b/.github/workflows/schema-validation.yml @@ -0,0 +1,31 @@ +name: Validate schema changes + +on: + pull_request: + branches: + - dev-2.x + +jobs: + validate-gtfs: + name: Validate GraphQL schema changes + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: kamilkisiela/graphql-inspector@master + with: + name: Validate GTFS GraphQL schema changes + schema: 'dev-2.x:application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls' + annotations: true + fail-on-breaking: true + ignoreDescriptionChanges: true + + - uses: kamilkisiela/graphql-inspector@master + with: + name: Validate Transmodel GraphQL schema changes + schema: 'dev-2.x:application/src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql' + annotations: true + fail-on-breaking: true + ignoreDescriptionChanges: true \ No newline at end of file