mirror of
https://github.com/lldap/lldap.git
synced 2024-11-25 09:06:03 +00:00
schema: add a script to re-export the schema
This commit is contained in:
parent
2954109d96
commit
6ef06163db
2 changed files with 6 additions and 1 deletions
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
||||||
- name: Generate GraphQL schema
|
- name: Generate GraphQL schema
|
||||||
run: cargo run -- export_graphql_schema -o generated_schema.graphql
|
run: cargo run -- export_graphql_schema -o generated_schema.graphql
|
||||||
- name: Check schema
|
- name: Check schema
|
||||||
run: diff schema.graphql generated_schema.graphql
|
run: diff schema.graphql generated_schema.graphql || (echo "The schema file is out of date. Please run `./export_schema.sh`" && false)
|
||||||
|
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
|
|
5
export_schema.sh
Executable file
5
export_schema.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
cd $(dirname $(readlink -f "$0"))
|
||||||
|
|
||||||
|
cargo run -- export_graphql_schema -o schema.graphql
|
Loading…
Reference in a new issue