kind: pipeline type: docker name: go-lib/util environment: VERSION: development workspace: base: /go # path: src/github.com/octocat/hello-world steps: - name: prepare image: golang commands: - go get -v ./... - go install gotest.tools/gotestsum@v1.13.0 - go install golang.org/x/vuln/cmd/govulncheck@latest - name: test image: golang commands: - mkdir -p .build - gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./... depends_on: - prepare - name: vulncheck image: golang commands: - govulncheck ./... depends_on: - prepare - name: publish image: golang commands: - echo "Publishing not implemented yet" when: branch: - main event: - custom trigger: event: - push - cron - custom