This commit is contained in:
+3
-2
@@ -1,6 +1,7 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: go-lib/util
|
name: go-lib/util
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
VERSION: development
|
VERSION: development
|
||||||
|
|
||||||
@@ -13,13 +14,12 @@ steps:
|
|||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go get -v ./...
|
- go get -v ./...
|
||||||
- go install gotest.tools/gotestsum@v1.13.0
|
|
||||||
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p .build
|
- mkdir -p .build
|
||||||
|
- go install gotest.tools/gotestsum@v1.13.0
|
||||||
- gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./...
|
- gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./...
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
@@ -27,6 +27,7 @@ steps:
|
|||||||
- name: vulncheck
|
- name: vulncheck
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
|
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||||
- govulncheck ./...
|
- govulncheck ./...
|
||||||
- ls -la /go/
|
- ls -la /go/
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user