From 92e334d373d7ae9c1bce903867ac1b4cf0bbfda4 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Sun, 5 Mar 2023 11:28:20 +0100 Subject: [PATCH] feat(ci): display test results in drone --- .drone.yml | 9 +++++++-- .gitignore | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 76b8e91..f910af9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,7 +28,12 @@ steps: DOCKER_HOST: tcp://localhost:2375 commands: - go install gotest.tools/gotestsum@latest - - gotestsum -f pkgname-and-test-fails -- -race -shuffle=on ./... + - gotestsum --junitfile out/results.xml --format pkgname-and-test-fails -- -race -shuffle=on ./... + + - name: junit-reports + image: ghcr.io/rohit-gohri/drone-junit:v0 + settings: + paths: out/results.xml --- kind: pipeline @@ -54,4 +59,4 @@ steps: RENOVATE_PLATFORM: gitea RENOVATE_AUTODISCOVER: "false" RENOVATE_ENDPOINT: https://code.icb4dc0.de/api/v1 - LOG_LEVEL: info \ No newline at end of file + LOG_LEVEL: info diff --git a/.gitignore b/.gitignore index ab18ed4..8201379 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ dist/ .idea/ .fleet/ cue.mod/ -.go/ \ No newline at end of file +.go/ +out/ \ No newline at end of file