NO-ISSUE: Fixed build
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
153fc43e55
commit
ae9b99321b
28
.drone.yml
28
.drone.yml
|
@ -3,18 +3,34 @@ type: docker
|
||||||
name: go-lib/micro
|
name: go-lib/micro
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: prepare
|
||||||
image: golang
|
image: golang:1.20.2
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p .build
|
- mkdir -p .build
|
||||||
- go install gotest.tools/gotestsum@latest
|
- go get -v ./...
|
||||||
- go get ./...
|
|
||||||
- gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./...
|
- name: test
|
||||||
|
image: golang:1.20.2
|
||||||
|
commands:
|
||||||
|
- go test -v -coverprofile=.build/coverage.txt ./...
|
||||||
|
depends_on:
|
||||||
|
- prepare
|
||||||
|
|
||||||
|
- name: vulncheck
|
||||||
|
image: golang:1.20.2
|
||||||
|
commands:
|
||||||
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||||
- govulncheck -v ./...
|
- govulncheck -v -json ./... > .build/vulncheck.json
|
||||||
|
depends_on:
|
||||||
|
- prepare
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- cron
|
- cron
|
||||||
- custom
|
- custom
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
Loading…
Reference in New Issue