CI: Check format before running test
Testing needs compilation and is slow. Format checking is quick. As format checking fails more often than tests, switching them should result in faster failure and feedback
This commit is contained in:
		
							parent
							
								
									9268b33c3f
								
							
						
					
					
						commit
						eaa4c77641
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -30,8 +30,8 @@ test:cargo: | ||||||
|     - rustup component add clippy rustfmt |     - rustup component add clippy rustfmt | ||||||
|   script: |   script: | ||||||
|     - rustc --version && cargo --version  # Print version info for debugging |     - rustc --version && cargo --version  # Print version info for debugging | ||||||
|     - cargo test --workspace --verbose --locked |  | ||||||
|     - cargo fmt --all -- --check |     - cargo fmt --all -- --check | ||||||
|  |     - cargo test --workspace --verbose --locked | ||||||
|     - cargo clippy |     - cargo clippy | ||||||
| 
 | 
 | ||||||
| # --------------------------------------------------------------------- # | # --------------------------------------------------------------------- # | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue