graphql-inspector
graphql-inspector copied to clipboard
Other commands for Github actions
Right now it's possible to validate schema changes with Github actions by defining it in .github/graphql-inspector.yml and graphql-inspector automatically annotates the code (which is insanely cool). However, other commands, such as graphql-inspector validate
for the are only supported in the CLI and not in the GH actions cli. It would be awesome if the validate
command would be support there to allow seamless validation with graphql queries in frontend projects.
I guess for now you can use CLI and thanks to #366 it's possible to load schema.graphql
via git
.
Nice! Any chance there will be support for globs to the following?
graphql-inspector diff "git:origin/master:**/*.graphql" "**/*.graphql"
It seems the git: syntax does not yet support globbing while the normal syntax "**/*.graphql" does, I get the following errr: Syntax Error: Unexpected <EOF>
.
Also I think there's missing something so I left a review: https://github.com/kamilkisiela/graphql-inspector/pull/366#discussion_r296679655