mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	schema: add a script to re-export the schema
This commit is contained in:
		
							parent
							
								
									900836fbdb
								
							
						
					
					
						commit
						0d39b5b0ab
					
				
							
								
								
									
										2
									
								
								.github/workflows/rust.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/rust.yml
									
									
									
									
										vendored
									
									
								
							@ -24,7 +24,7 @@ jobs:
 | 
			
		||||
      - name: Generate GraphQL schema
 | 
			
		||||
        run: cargo run -- export_graphql_schema -o generated_schema.graphql
 | 
			
		||||
      - 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:
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										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 New Issue
	
	Block a user