add clippy and tests
This commit is contained in:
		
							
								
								
									
										6
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
								
							@@ -59,6 +59,12 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - uses: Swatinem/rust-cache@v2
 | 
					      - uses: Swatinem/rust-cache@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Clippy & Tests
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          cd src-tauri
 | 
				
			||||||
 | 
					          cargo clippy --all --tests -- -D warnings
 | 
				
			||||||
 | 
					          cargo test --all
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: install dependencies (ubuntu only)
 | 
					      - name: install dependencies (ubuntu only)
 | 
				
			||||||
        if: matrix.platform == 'ubuntu-20.04'
 | 
					        if: matrix.platform == 'ubuntu-20.04'
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							@@ -55,6 +55,12 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - uses: Swatinem/rust-cache@v2
 | 
					      - uses: Swatinem/rust-cache@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Clippy & Tests
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          cd src-tauri
 | 
				
			||||||
 | 
					          cargo clippy --all --tests -- -D warnings
 | 
				
			||||||
 | 
					          cargo test --all
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: install dependencies (ubuntu only)
 | 
					      - name: install dependencies (ubuntu only)
 | 
				
			||||||
        if: matrix.platform == 'ubuntu-20.04'
 | 
					        if: matrix.platform == 'ubuntu-20.04'
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,3 +4,7 @@
 | 
				
			|||||||
# If not using pnpm, switch to your package manager
 | 
					# If not using pnpm, switch to your package manager
 | 
				
			||||||
npx lint-staged
 | 
					npx lint-staged
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cd src-tauri
 | 
				
			||||||
 | 
					cargo clippy --all --tests -- -D warnings
 | 
				
			||||||
 | 
					cargo test --all
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user