-
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 5ade4f3
Showing
3 changed files
with
34 additions
and
13 deletions.
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 |
---|---|---|
|
@@ -35,10 +35,18 @@ runs: | |
- name: Publish test report | ||
uses: mikepenz/action-junit-report@v4 | ||
with: | ||
check_name: ${{ inputs.stage}} | ||
annotate_only: true | ||
job_summary: false | ||
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: 5 | ||
|
||
- 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
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 |
---|---|---|
|
@@ -413,9 +413,9 @@ jobs: | |
- name: Run smoke tests | ||
run: bash run-e2e-test.sh "end2end" ${E2E_IMAGE_NAME}:${E2E_IMAGE_TAG} "smoke" "default" | ||
working-directory: ./.github/scripts/end2end | ||
- name: Debug wait | ||
uses: ./.github/actions/debug-wait | ||
- uses: ./.github/actions/debug-wait | ||
timeout-minutes: 60 | ||
if: failure() | ||
- name: Archive and publish artifacts | ||
uses: ./.github/actions/archive-artifacts | ||
with: | ||
|
@@ -472,9 +472,9 @@ jobs: | |
- name: Run CTST end to end tests | ||
run: bash run-e2e-ctst.sh "" "" "" "" --tags @PRA | ||
working-directory: ./.github/scripts/end2end | ||
- name: Debug wait | ||
uses: ./.github/actions/debug-wait | ||
- uses: ./.github/actions/debug-wait | ||
timeout-minutes: 60 | ||
if: failure() | ||
- name: Archive and publish artifacts | ||
uses: ./.github/actions/archive-artifacts | ||
with: | ||
|
@@ -523,9 +523,9 @@ jobs: | |
# - name: Run vault e2e tests | ||
# run: bash vault-e2e-test.sh | ||
# working-directory: ./.github/scripts/end2end | ||
- name: Debug wait | ||
uses: ./.github/actions/debug-wait | ||
- uses: ./.github/actions/debug-wait | ||
timeout-minutes: 60 | ||
if: failure() | ||
- name: Archive and publish artifacts | ||
uses: ./.github/actions/archive-artifacts | ||
with: | ||
|
@@ -562,9 +562,9 @@ jobs: | |
- name: Run backbeat end to end tests | ||
run: bash run-e2e-test.sh "end2end" ${E2E_IMAGE_NAME}:${E2E_IMAGE_TAG} "backbeat" "default" | ||
working-directory: ./.github/scripts/end2end | ||
- name: Debug wait | ||
uses: ./.github/actions/debug-wait | ||
- uses: ./.github/actions/debug-wait | ||
timeout-minutes: 60 | ||
if: failure() | ||
- name: Archive and publish artifacts | ||
uses: ./.github/actions/archive-artifacts | ||
with: | ||
|
@@ -608,9 +608,9 @@ jobs: | |
- name: Run CTST end to end tests | ||
run: bash run-e2e-ctst.sh "" "" "" "" --tags 'not @PRA' | ||
working-directory: ./.github/scripts/end2end | ||
- name: Debug wait | ||
uses: ./.github/actions/debug-wait | ||
- uses: ./.github/actions/debug-wait | ||
timeout-minutes: 60 | ||
if: failure() | ||
- name: Archive and publish artifacts | ||
uses: ./.github/actions/archive-artifacts | ||
with: | ||
|
@@ -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: 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() | ||
|
||
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Publish test report | ||
uses: mikepenz/action-junit-report@v4 | ||
with: | ||
check_name: 'junit: test results' | ||
detailed_summary: true | ||
report_paths: '*-test-report/*.xml' | ||
continue-on-error: true |