Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upload test results even when test job fails #2743

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/reportIntermittentTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,26 @@ jobs:

- name: Get report name
id: reportName
if: always()
run: |
reportName=${{ matrix.command }}
echo "reportName=${reportName//\:/_}" >> $GITHUB_OUTPUT

- uses: actions/upload-artifact@v3
if: always()
with:
name: backend_test_reports_${{ steps.version.outputs.reportName }}
name: backend_test_reports_${{ steps.reportName.outputs.reportName }}
path: |
./**/build/reports/**/*

- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Test report for ${{ matrix.command }}
path: "**/build/test-results/**/TEST-*.xml"
reporter: java-junit

e2e:
needs: [ frontend-build, backend-build, e2e-install-deps ]
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,23 @@ jobs:

- name: Get report name
id: reportName
if: always()
run: |
reportName=${{ matrix.command }}
echo "reportName=${reportName//\:/_}" >> $GITHUB_OUTPUT

- uses: actions/upload-artifact@v3
if: always()
with:
name: backend_test_reports_${{ steps.version.outputs.reportName }}
name: backend_test_reports_${{ steps.reportName.outputs.reportName }}
path: |
./**/build/reports/**/*

- name: Test Report
uses: dorny/test-reporter@v1
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
if: ${{ always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
with:
name: Backend Tests
name: Test report for ${{ matrix.command }}
path: "**/build/test-results/**/TEST-*.xml"
reporter: java-junit

Expand Down
Loading