Generalize build
This commit is contained in:
		
							parent
							
								
									2242ffd0cb
								
							
						
					
					
						commit
						05a61bba86
					
				
							
								
								
									
										14
									
								
								.drone.yml
								
								
								
								
							
							
						
						
									
										14
									
								
								.drone.yml
								
								
								
								
							|  | @ -3,10 +3,18 @@ type: docker | |||
| name: go-lib/util | ||||
| 
 | ||||
| steps: | ||||
| - name: test | ||||
|   image: golang:1.20.1 | ||||
| - name: build | ||||
|   image: golang | ||||
|   commands: | ||||
|     - mkdir -p .build | ||||
|     - go install gotest.tools/gotestsum@v1.9.0 | ||||
|     - go get ./... | ||||
|     - go test ./... | ||||
|     - gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./...  | ||||
|     - go install golang.org/x/vuln/cmd/govulncheck@latest | ||||
|     - govulncheck -v ./... | ||||
| 
 | ||||
| trigger: | ||||
|   event: | ||||
|   - push   | ||||
|   - cron | ||||
|   - custom   | ||||
		Loading…
	
		Reference in New Issue