Skip to content

Commit

Permalink
fix: separate e2e and unit test reporting uploads (#3747)
Browse files Browse the repository at this point in the history
* seperate test reporting

Signed-off-by: Zach Aller <[email protected]>

* fix file name path

Signed-off-by: Zach Aller <[email protected]>

---------

Signed-off-by: Zach Aller <[email protected]>
  • Loading branch information
zachaller authored Jul 25, 2024
1 parent 872f2ac commit 638ca1b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/testing-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
- 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"
4 changes: 2 additions & 2 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 638ca1b

Please sign in to comment.