Skip to content

Latest commit

 

History

History

validate-graphql-schema

Validate Graphql Schema

Github action to compare local graphql schema with prod graphql schema for notifying breaking changes.

Usage

- name: Validate local grpahql schema against prod graphql schema
  uses: sittercity/github-actions/validate-graphql-schema@v1
  with:
    github-token: ${{ env.BUNDLER_ACCESS_TOKEN }}
    schema: 'path for schema.graphql file'
    endpoint: 'URL for graphql endpoint'

Development

Run npm run build before you merge as it will pick up on the dist/index.js that is compiled. This should be automated in the future.