From aab352520274bb10740e793d87d30bc6377aba9b Mon Sep 17 00:00:00 2001 From: Zach Aller Date: Wed, 24 Jul 2024 19:53:52 -0500 Subject: [PATCH 1/2] seperate test reporting Signed-off-by: Zach Aller --- .github/workflows/testing-results.yml | 17 ++++++++++++++--- .github/workflows/testing.yaml | 4 ++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/testing-results.yml b/.github/workflows/testing-results.yml index 17b38409aa..9da53e2526 100644 --- a/.github/workflows/testing-results.yml +++ b/.github/workflows/testing-results.yml @@ -25,14 +25,25 @@ jobs: path: artifacts github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Publish Test Results + - name: Publish E2E Test Results uses: EnricoMi/publish-unit-test-result-action@v2 with: - check_name: "${{ github.event.workflow.name }} Published Test Results" + check_name: "Published E2E Test Results" compare_to_earlier_commit: false test_changes_limit: 0 fail_on: "errors" commit: ${{ github.event.workflow_run.head_sha }} event_file: artifacts/Event File/event.json event_name: ${{ github.event.workflow_run.event }} - files: "artifacts/**/*.xml" + files: "artifacts/junit-e2e-test.xml/*.xml" + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + with: + check_name: "Published Unit Test Results" + compare_to_earlier_commit: false + test_changes_limit: 0 + fail_on: "errors" + commit: ${{ github.event.workflow_run.head_sha }} + event_file: artifacts/Event File/event.json + event_name: ${{ github.event.workflow_run.event }} + files: "artifacts/junit-unit-test.xml/*.xml" diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 3bbb003282..d9862e5726 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -67,7 +67,7 @@ jobs: with: name: Unit Test Results path: | - junit.xml + junit-unit-test.xml - name: Generate code coverage artifacts uses: actions/upload-artifact@v4 with: @@ -134,7 +134,7 @@ jobs: with: name: E2E Test Results (k8s ${{ matrix.kubernetes.version }}) path: | - junit.xml + junit-e2e-test.xml - name: Upload e2e-controller logs uses: actions/upload-artifact@v4 with: From f3ab2d223146b11ad2f67075af3b876ef6c1e8e4 Mon Sep 17 00:00:00 2001 From: Zach Aller Date: Wed, 24 Jul 2024 19:58:54 -0500 Subject: [PATCH 2/2] fix file name path Signed-off-by: Zach Aller --- .github/workflows/testing-results.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing-results.yml b/.github/workflows/testing-results.yml index 9da53e2526..f91ae48aa7 100644 --- a/.github/workflows/testing-results.yml +++ b/.github/workflows/testing-results.yml @@ -35,7 +35,7 @@ jobs: commit: ${{ github.event.workflow_run.head_sha }} event_file: artifacts/Event File/event.json event_name: ${{ github.event.workflow_run.event }} - files: "artifacts/junit-e2e-test.xml/*.xml" + files: "artifacts/**/junit-e2e-test.xml" - name: Publish Unit Test Results uses: EnricoMi/publish-unit-test-result-action@v2 with: @@ -46,4 +46,4 @@ jobs: commit: ${{ github.event.workflow_run.head_sha }} event_file: artifacts/Event File/event.json event_name: ${{ github.event.workflow_run.event }} - files: "artifacts/junit-unit-test.xml/*.xml" + files: "artifacts/**/junit-unit-test.xml"