Skip to content

Commit

Permalink
Add test report once at the end of the build
Browse files Browse the repository at this point in the history
Issue: ZENKO-4876
  • Loading branch information
francoisferrand committed Sep 30, 2024
1 parent 7c969b7 commit 6ed613f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/actions/archive-artifacts/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ runs:
report_paths: ${{ inputs.junit-paths }}
continue-on-error: true

- name: Upload test reports
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.stage}}-test-report
path: ${{ inputs.junit-paths }}
retention-days: 1

- name: Upload results
if: inputs.trunk_token && job.status != 'cancelled'
uses: trunk-io/[email protected]
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/end2end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,8 @@ jobs:
run: kind delete cluster

write-final-status:
permissions:
checks: write
runs-on: ubuntu-latest
needs:
- check-dashboard-versions
Expand All @@ -635,11 +637,22 @@ jobs:
- end2end-sharded
- end2end-pra
- ctst-end2end-sharded
if: always()
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
- shell: bash
run: tree
- name: Publish test report
uses: mikepenz/action-junit-report@v4
with:
check_name: Test results
report_paths: '*-test-reports/*.xml'
continue-on-error: true

- name: Upload final status
uses: scality/actions/[email protected]
with:
ARTIFACTS_USER: ${{ secrets.ARTIFACTS_USER }}
ARTIFACTS_PASSWORD: ${{ secrets.ARTIFACTS_PASSWORD }}
JOBS_RESULTS: ${{ join(needs.*.result) }}
if: always()

0 comments on commit 6ed613f

Please sign in to comment.