-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test report once at the end of the build
Issue: ZENKO-4876
- Loading branch information
1 parent
7c969b7
commit 6ed613f
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -622,6 +622,8 @@ jobs: | |
run: kind delete cluster | ||
|
||
write-final-status: | ||
permissions: | ||
checks: write | ||
runs-on: ubuntu-latest | ||
needs: | ||
- check-dashboard-versions | ||
|
@@ -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() |