Generalize build
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
Stefan Goppelt 2023-03-08 20:04:40 +00:00
parent 2242ffd0cb
commit 05a61bba86
1 changed files with 12 additions and 4 deletions

View File

@ -3,10 +3,18 @@ type: docker
name: go-lib/util name: go-lib/util
steps: steps:
- name: test - name: build
image: golang:1.20.1 image: golang
commands: commands:
- mkdir -p .build
- go install gotest.tools/gotestsum@v1.9.0
- go get ./... - go get ./...
- go test ./... - 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 ./... - govulncheck -v ./...
trigger:
event:
- push
- cron
- custom