diff --git a/.drone.yml b/.drone.yml index 4572421..c483322 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,46 +2,45 @@ kind: pipeline type: docker name: go-lib/util environment: - GOVERSION: 1.25.1 VERSION: development steps: - name: prepare - image: golang:$GOVERSION + image: golang:1.25.1 commands: - mkdir -p .build - go get -v ./... - go install gotest.tools/gotestsum@v1.13.0 - go install golang.org/x/vuln/cmd/govulncheck@latest -# - name: test -# image: golang:${GOVERSION} -# commands: -# - mkdir -p .build -# - gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./... -# - govulncheck ./... -# depends_on: -# - prepare +- name: test + image: golang:1.25.1 + commands: + - mkdir -p .build + - gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./... + - govulncheck ./... + depends_on: + - prepare -# - name: vulncheck -# image: golang:${GOVERSION} -# commands: -# - govulncheck ./... -# depends_on: -# - prepare +- name: vulncheck + image: golang:1.25.1 + commands: + - govulncheck ./... + depends_on: + - prepare -# - name: publish -# image: golang -# commands: -# - echo "Publishing not implemented yet" -# when: -# branch: -# - main -# event: -# - custom +- name: publish + image: golang:1.25.1 + commands: + - echo "Publishing not implemented yet" + when: + branch: + - main + event: + - custom -# trigger: -# event: -# - push -# - cron -# - custom \ No newline at end of file +trigger: + event: + - push + - cron + - custom \ No newline at end of file