From 8b3784bf73eed5a7bf471dd7f36942fee249ed8c Mon Sep 17 00:00:00 2001 From: Christoph Raaflaub Date: Thu, 14 Nov 2024 06:40:02 +0100 Subject: [PATCH] all report -> unit test --- .github/workflows/dagger.yaml | 10 +++++++++- ci/main.go | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dagger.yaml b/.github/workflows/dagger.yaml index 3c4ab6d6..94ee0dfa 100644 --- a/.github/workflows/dagger.yaml +++ b/.github/workflows/dagger.yaml @@ -24,4 +24,12 @@ jobs: # Dagger module to call. Local or Git module: . # Arguments to pass to CLI - args: ci-integration --pass=true --dir=./ export --path=./out/ + args: ci-integration --pass=true --dir=./ export --path=./reports/ + - name: Unittest Report + uses: dorny/test-reporter@v1.9.1 + with: + name: Minitests + path: reports/unit-tests/*.xml + reporter: java-junit + fail-on-empty: 'false' + fail-on-error: 'true' diff --git a/ci/main.go b/ci/main.go index 1c321815..144f9c30 100644 --- a/ci/main.go +++ b/ci/main.go @@ -213,7 +213,7 @@ func (m *Ci) CiIntegration( pass bool, ) *dagger.Directory { var wg sync.WaitGroup - wg.Add(4) + wg.Add(3) var lintOutput = func() *dagger.File { defer wg.Done() @@ -253,7 +253,7 @@ func (m *Ci) CiIntegration( WithWorkdir("/tmp/out"). WithFile(fmt.Sprintf("/tmp/out/lint/%s", lintOutputName), lintOutput). WithFile(fmt.Sprintf("/tmp/out/scan/%s", securityScanName), securityScan). - WithDirectory("/tmp/out/tests/", testReports) + WithDirectory("/tmp/out/unit-tests/", testReports) //WithFile(fmt.Sprintf("/tmp/out/vuln/%s", vulnerabilityScanName), vulnerabilityScan) return result_container. Directory(".")