kind: pipeline type: docker name: go-lib/util steps: - name: build image: golang commands: - mkdir -p .build - go install gotest.tools/gotestsum@v1.9.0 - go get ./... - gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./... - go install golang.org/x/vuln/cmd/govulncheck@latest - govulncheck -v ./... - name: publish image: golang commands: - echo "Publishing not implemented yet" when: branch: - main event: - custom trigger: event: - push - cron - custom