NO-ISSUE: Update drone
	
		
			
	
		
	
	
		
			
				
	
				continuous-integration/drone/push Build encountered an error
				
					Details
				
			
		
	
				
					
				
			
				
	
				continuous-integration/drone/push Build encountered an error
				
					Details
				
			
		
	This commit is contained in:
		
							parent
							
								
									3d154a90cb
								
							
						
					
					
						commit
						86f12df1c0
					
				
							
								
								
									
										31
									
								
								.drone.yml
								
								
								
								
							
							
						
						
									
										31
									
								
								.drone.yml
								
								
								
								
							|  | @ -1,17 +1,35 @@ | ||||||
| kind: pipeline | kind: pipeline | ||||||
| type: docker | type: docker | ||||||
| name: go-lib/util | name: go-lib/util | ||||||
|  | environment: | ||||||
|  |   GOVERSION: 1.25.1 | ||||||
|  |   VERSION: development | ||||||
| 
 | 
 | ||||||
| steps: | steps: | ||||||
| - name: build | - name: prepare | ||||||
|   image: golang |   image: golang:${GOVERSION} | ||||||
|   commands: |   commands: | ||||||
|     - mkdir -p .build |     - mkdir -p .build | ||||||
|     - go install gotest.tools/gotestsum@v1.9.0 |     - go get -v ./... | ||||||
|     - go get ./... |     - go install gotest.tools/gotestsum@1.13.0 | ||||||
|     - gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./...  |  | ||||||
|     - go install golang.org/x/vuln/cmd/govulncheck@latest |     - go install golang.org/x/vuln/cmd/govulncheck@latest | ||||||
|     - govulncheck -v ./... | 
 | ||||||
|  | - name: test | ||||||
|  |   image: golang:${GOVERSION} | ||||||
|  |   commands: | ||||||
|  |     - mkdir -p .build | ||||||
|  |     - gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./...  | ||||||
|  |     - govulncheck ./... | ||||||
|  |   depends_on: | ||||||
|  |     - prepare | ||||||
|  | 
 | ||||||
|  | - name: vulncheck | ||||||
|  |   image: golang:${GOVERSION} | ||||||
|  |   commands: | ||||||
|  |     - govulncheck ./... | ||||||
|  |   depends_on: | ||||||
|  |     - prepare | ||||||
|  | 
 | ||||||
| - name: publish | - name: publish | ||||||
|   image: golang |   image: golang | ||||||
|   commands: |   commands: | ||||||
|  | @ -21,6 +39,7 @@ steps: | ||||||
|       - main |       - main | ||||||
|     event: |     event: | ||||||
|       - custom       |       - custom       | ||||||
|  | 
 | ||||||
| trigger: | trigger: | ||||||
|   event: |   event: | ||||||
|   - push   |   - push   | ||||||
|  |  | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | .build/ | ||||||
		Loading…
	
		Reference in New Issue