Skip to content

Commit

Permalink
all report -> unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrira committed Nov 14, 2024
1 parent 36af895 commit 8b3784b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/dagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
name: Minitests
path: reports/unit-tests/*.xml
reporter: java-junit
fail-on-empty: 'false'
fail-on-error: 'true'
4 changes: 2 additions & 2 deletions ci/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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(".")
Expand Down

0 comments on commit 8b3784b

Please sign in to comment.