mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	ci: use docker image for golangci-lint (#9737)
This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							a3977a3e51
						
					
				
				
					commit
					2ecf98ed2d
				
			| @@ -83,13 +83,18 @@ steps: | |||||||
|       - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs |       - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs | ||||||
|       - go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit |       - go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit | ||||||
|  |  | ||||||
|  |   - name: golangci-lint | ||||||
|  |     pull: always | ||||||
|  |     image: golangci/golangci-lint:v1.22.2 | ||||||
|  |     commands: | ||||||
|  |       - golangci-lint run -v --timeout 5m | ||||||
|  |  | ||||||
|   - name: build |   - name: build | ||||||
|     pull: always |     pull: always | ||||||
|     image: golang:1.13 |     image: golang:1.13 | ||||||
|     commands: |     commands: | ||||||
|       - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs |       - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs | ||||||
|       - make clean |       - make clean | ||||||
|       - make golangci-lint |  | ||||||
|       - make revive |       - make revive | ||||||
|       - make swagger-check |       - make swagger-check | ||||||
|       - make swagger-validate |       - make swagger-validate | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user