micro/.drone.yml

20 lines
439 B
YAML
Raw Normal View History

2023-03-07 07:17:18 +00:00
kind: pipeline
type: docker
2023-03-07 16:41:19 +00:00
name: go-lib/micro
2023-03-08 09:54:35 +00:00
2023-03-07 07:17:18 +00:00
steps:
2023-03-07 16:24:57 +00:00
- name: build
2023-03-08 19:44:58 +00:00
image: golang:1.20.1
2023-03-07 16:24:57 +00:00
commands:
2023-03-08 19:44:58 +00:00
- mkdir -p .build
- go install gotest.tools/gotestsum@v1.9.0
2023-03-07 16:24:57 +00:00
- go get ./...
2023-03-08 19:44:58 +00:00
- gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./...
2023-03-08 08:27:09 +00:00
- go install golang.org/x/vuln/cmd/govulncheck@latest
2023-03-08 19:44:58 +00:00
- govulncheck -v ./...
2023-03-08 08:16:22 +00:00
trigger:
event:
- push
- cron
- custom