Skip to content

Commit

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

Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>

* fix file name path

Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>

---------

Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
  • Loading branch information
zachaller authored and nikoshet committed Jul 25, 2024
1 parent 872f2ac commit 0787596
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 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"
8 changes: 5 additions & 3 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 All @@ -86,6 +86,8 @@ jobs:
- version: 1.28
latest: false
- version: 1.29
latest: false
- version: '1.30'
latest: true
name: Run end-to-end tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -134,7 +136,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 Expand Up @@ -179,4 +181,4 @@ jobs:
file: full-coverage.out
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 0787596

Please sign in to comment.