NO-ISSUE: Fixed build
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Stefan Goppelt 2023-07-17 17:46:17 +00:00
parent 153fc43e55
commit ae9b99321b
1 changed files with 23 additions and 7 deletions

View File

@ -3,18 +3,34 @@ type: docker
name: go-lib/micro
steps:
- name: build
image: golang
- name: prepare
image: golang:1.20.2
commands:
- mkdir -p .build
- go install gotest.tools/gotestsum@latest
- go get ./...
- gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./...
- go get -v ./...
- 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
- govulncheck -v ./...
- govulncheck -v -json ./... > .build/vulncheck.json
depends_on:
- prepare
trigger:
event:
- push
- cron
- custom
- custom
volumes:
- name: dockersock
host:
path: /var/run/docker.sock