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.

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"
}
Jamie Barton

Published on 20 Dec 2021 by Jamie Barton