graphql-inspector icon indicating copy to clipboard operation
graphql-inspector copied to clipboard

Other commands for Github actions

Open steebchen opened this issue 5 years ago • 2 comments

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.

steebchen avatar May 11 '19 23:05 steebchen

I guess for now you can use CLI and thanks to #366 it's possible to load schema.graphql via git.

kamilkisiela avatar Jun 21 '19 19:06 kamilkisiela

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

steebchen avatar Jun 24 '19 11:06 steebchen