This commit is contained in:
		
							
								
								
									
										33
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| kind: pipeline | ||||
| type: docker | ||||
| name: default | ||||
|  | ||||
| steps: | ||||
|   - name: lint | ||||
|     image: golang:latest | ||||
|     volumes: | ||||
|       - name: deps | ||||
|         path: /go | ||||
|     commands: | ||||
|       - go get -u github.com/golangci/golangci-lint/cmd/golangci-lint | ||||
|       - golangci-lint run | ||||
|  | ||||
|   - name: test | ||||
|     image: golang | ||||
|     volumes: | ||||
|       - name: deps | ||||
|         path: /go | ||||
|     commands: | ||||
|       - go test | ||||
|  | ||||
|   - name: build | ||||
|     image: golang | ||||
|     volumes: | ||||
|       - name: deps | ||||
|         path: /go | ||||
|     commands: | ||||
|       - go build | ||||
|  | ||||
| volumes: | ||||
|   - name: deps | ||||
|     temp: {} | ||||
		Reference in New Issue
	
	Block a user