cli: introduce the export_graphql_schema command

Split the command line into subcommands `run` and
`export_graphql_schema`.
This commit is contained in:
Valentin Tolmer
2021-08-26 21:46:00 +02:00
committed by nitnelave
parent d2617e08a7
commit a08b9a556d
6 changed files with 103 additions and 8 deletions

View File

@@ -21,6 +21,11 @@ jobs:
run: cargo build --verbose --workspace
- name: Run tests
run: cargo test --verbose --workspace
- name: Generate GraphQL schema
run: cargo run -- export_graphql_schema -o generated_schema.graphql
- name: Check schema
run: diff schema.graphql generated_schema.graphql
clippy:
name: cargo clippy