feat: add github ci for tests, cargo check and clippy
This commit is contained in:
		
							
								
								
									
										29
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					name: Continuous Integration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on: push
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					env:
 | 
				
			||||||
 | 
					    CARGO_TERM_COLOR: always
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					    check:
 | 
				
			||||||
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					        name: Check
 | 
				
			||||||
 | 
					        steps:
 | 
				
			||||||
 | 
					            - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					            - name: cargo check
 | 
				
			||||||
 | 
					              run: cargo check
 | 
				
			||||||
 | 
					    test:
 | 
				
			||||||
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					        name: Test
 | 
				
			||||||
 | 
					        steps:
 | 
				
			||||||
 | 
					            - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					            - name: cargo test
 | 
				
			||||||
 | 
					              run: cargo test
 | 
				
			||||||
 | 
					    clippy:
 | 
				
			||||||
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					        name: Lint (clippy)
 | 
				
			||||||
 | 
					        steps:
 | 
				
			||||||
 | 
					            - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					            - name: cargo clippy
 | 
				
			||||||
 | 
					              run: cargo clippy -- -D warnings
 | 
				
			||||||
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -14,5 +14,3 @@ target/
 | 
				
			|||||||
/src/inputs/*
 | 
					/src/inputs/*
 | 
				
			||||||
!/src/inputs/.keep
 | 
					!/src/inputs/.keep
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/src/test_inputs/*
 | 
					 | 
				
			||||||
!/src/test_inputs/.keep
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										0
									
								
								src/test_inputs/01.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								src/test_inputs/01.txt
									
									
									
									
									
										Normal file
									
								
							
		Reference in New Issue
	
	Block a user