diff --git a/.drone.yml b/.drone.yml index 24fe2bc..9964fa6 100644 --- a/.drone.yml +++ b/.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 ./... \ No newline at end of file + - govulncheck -v ./... + +trigger: + event: + - push + - cron + - custom \ No newline at end of file