add automated format check
This commit is contained in:
		
							
								
								
									
										14
									
								
								.gitea/workflows/checks.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								.gitea/workflows/checks.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
name: checks
 | 
			
		||||
on:
 | 
			
		||||
  - push
 | 
			
		||||
  - pull_request
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  lint:
 | 
			
		||||
    runs_on: "alpine_amd64"
 | 
			
		||||
    container:
 | 
			
		||||
      image: "rust:1.73-alpine3.18"
 | 
			
		||||
    name: format
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: rustfmt
 | 
			
		||||
        run: cargo fmt --check
 | 
			
		||||
		Reference in New Issue
	
	Block a user