Detect breaking GraphQL schema changes with GitHub Actions

Learn how to configure a GitHub Action to automatically detect breaking schema changes when new Pull Requests are opened.

Jamie Barton

Published on 20 Dec 2021 by Jamie Barton

Notes

name: GraphQL Inspector
on: [push]
jobs:
test:
name: Check Schema
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: kamilkisiela/graphql-inspector@master
with:
schema: "main:schema.graphql"
{
"validate": "graphql-inspector validate ./query.graphql ./schema.graphql"
}