You've already forked comprehensive-rust
							
							
				mirror of
				https://github.com/google/comprehensive-rust.git
				synced 2025-10-31 08:37:45 +02:00 
			
		
		
		
	Add workflow to check that Rust code is formatted properly.
This commit is contained in:
		
							
								
								
									
										10
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -25,6 +25,16 @@ jobs: | ||||
|       - name: Test code snippets | ||||
|         run: mdbook test | ||||
|  | ||||
|   format: | ||||
|     name: Format | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: Format Rust code | ||||
|         run: cargo fmt --all -- --check | ||||
|  | ||||
|   cargo: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user