cli: introduce the export_graphql_schema command
Split the command line into subcommands `run` and `export_graphql_schema`.
This commit is contained in:
committed by
nitnelave
parent
d2617e08a7
commit
a08b9a556d
5
.github/workflows/rust.yml
vendored
5
.github/workflows/rust.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user