From ae9b99321b5073c86314f306b29ba363b49b3a2f Mon Sep 17 00:00:00 2001 From: Stefan Goppelt Date: Mon, 17 Jul 2023 17:46:17 +0000 Subject: [PATCH] NO-ISSUE: Fixed build --- .drone.yml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index c5c2fd9..fcb8a30 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,18 +3,34 @@ type: docker name: go-lib/micro steps: -- name: build - image: golang +- name: prepare + image: golang:1.20.2 commands: - mkdir -p .build - - go install gotest.tools/gotestsum@latest - - go get ./... - - gotestsum --format testname --junitfile .build/unittests.xml -- -coverprofile=.build/coverage.txt ./... + - go get -v ./... + +- name: test + image: golang:1.20.2 + commands: + - go test -v -coverprofile=.build/coverage.txt ./... + depends_on: + - prepare + +- name: vulncheck + image: golang:1.20.2 + commands: - go install golang.org/x/vuln/cmd/govulncheck@latest - - govulncheck -v ./... + - govulncheck -v -json ./... > .build/vulncheck.json + depends_on: + - prepare trigger: event: - push - cron - - custom \ No newline at end of file + - custom + +volumes: +- name: dockersock + host: + path: /var/run/docker.sock