mirror of
				https://github.com/MontFerret/ferret.git
				synced 2025-10-30 23:37:40 +02:00 
			
		
		
		
	Updated codecov settings
This commit is contained in:
		
							
								
								
									
										21
									
								
								.codecov.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								.codecov.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| ignore: | ||||
| # Ignore coverage for generated code. | ||||
| - "pkg/parser" | ||||
|  | ||||
| coverage: | ||||
|   range: 70..100 | ||||
|   round: nearest | ||||
|   precision: 1 | ||||
|  | ||||
|   status: | ||||
|     project: | ||||
|       default: | ||||
|         enabled: yes | ||||
|         threshold: 2% | ||||
|     patch: no | ||||
|     changes: no | ||||
|  | ||||
| comment: | ||||
|   layout: "header, diff" | ||||
|   behavior: once | ||||
|   require_changes: yes | ||||
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							| @@ -25,12 +25,8 @@ test: | ||||
| 	go test -race ${DIR_PKG}/... | ||||
|  | ||||
| cover: | ||||
| 	go test -race -coverprofile=coverage.txt -covermode=atomic ${DIR_PKG}/... | ||||
| ifneq ($(CODECOV_TOKEN), ) | ||||
| 	go test -race -coverprofile=coverage.txt -covermode=atomic ${DIR_PKG}/... && \ | ||||
| 	curl -s https://codecov.io/bash | bash | ||||
| else | ||||
| 	$(error "CODECOV_TOKEN token is required") | ||||
| endif | ||||
|  | ||||
| e2e: | ||||
| 	go run ${DIR_E2E}/main.go --tests ${DIR_E2E}/tests --pages ${DIR_E2E}/pages | ||||
|   | ||||
		Reference in New Issue
	
	Block a user