From 6b9efb14c573ace3301bbe09ae9081d6139e95a1 Mon Sep 17 00:00:00 2001 From: Adam Curtis Date: Sat, 14 Oct 2023 12:31:32 -0400 Subject: [PATCH] add junit reports to CICD --- .config/nextest.toml | 3 +++ .github/workflows/test-staging.yml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.config/nextest.toml b/.config/nextest.toml index 6f20f4ed..6d80fc6a 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -21,6 +21,9 @@ final-status-level = "slow" # continue if a test fails in CI fail-fast = false +# output JUnit XML report +junit = { path = "report.xml" } + ##### Configuration overrides for integration tests in CI runs ##### [[profile.ci.overrides]] filter = "kind(test)" diff --git a/.github/workflows/test-staging.yml b/.github/workflows/test-staging.yml index 1f28f314..48687e6a 100644 --- a/.github/workflows/test-staging.yml +++ b/.github/workflows/test-staging.yml @@ -95,3 +95,9 @@ jobs: shell: bash run: cargo nextest run --profile ci --archive-file ./target/integration-test-archive.tar.zst ${{ inputs.testRunnerOptions }} --workspace-remap "${GITHUB_WORKSPACE}" + - name: Publish Test Report + uses: mikepenz/action-junit-report@v4 + if: success() || failure() + with: + report_paths: 'target/nextest/ci/*.xml' +