feat: add Makefile
This commit is contained in:
		
						commit
						134c42fd50
					
				
							
								
								
									
										13
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					COVERAGE_DIR=coverage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					lint:
 | 
				
			||||||
 | 
						golangci-lint run ./...
 | 
				
			||||||
 | 
					goreportcard:
 | 
				
			||||||
 | 
						goreportcard-cli -v
 | 
				
			||||||
 | 
					test: 
 | 
				
			||||||
 | 
						go test ./...
 | 
				
			||||||
 | 
					test-coverage:
 | 
				
			||||||
 | 
						rm -rf ${COVERAGE_DIR}
 | 
				
			||||||
 | 
						mkdir ${COVERAGE_DIR}
 | 
				
			||||||
 | 
						go test -v -coverprofile ${COVERAGE_DIR}/cover.out ./...
 | 
				
			||||||
 | 
						go tool cover -html ${COVERAGE_DIR}/cover.out -o ${COVERAGE_DIR}/cover.html
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user