Add CI job to run GraphQL linter
In order to run the GraphQL linter on the CI, we need to create a new CI job that should be run every single time we make changes to .graphql
files. This job is dependant on graphql-schema-dump
job as we plan to use the resulting file as a source for Apollo tooling script to generate the extended schema (extended schema includes our local type definitions for @client
operations)
Planned workflow:
- have Apollo tooling installed as a dev dependency
- add config for Apollo tooling to
config
folder - run
graphql-schema-dump
- use resulting file for
apollo client:download-schema
command to ensure we include localtypedefs
to the output - use the output as a setting for
graphql-eslint
plugin (should be defined onparserOptions.schema
property - run the linter
Edited by Natalia Tepluhina