diff --git a/.github/workflows/reportIntermittentTests.yml b/.github/workflows/reportIntermittentTests.yml index f99852877f..2665a4b2b1 100644 --- a/.github/workflows/reportIntermittentTests.yml +++ b/.github/workflows/reportIntermittentTests.yml @@ -121,6 +121,7 @@ jobs: - name: Get report name id: reportName + if: always() run: | reportName=${{ matrix.command }} echo "reportName=${reportName//\:/_}" >> $GITHUB_OUTPUT @@ -128,10 +129,18 @@ jobs: - 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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e35a43cdcd..2c7b42b283 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -130,6 +130,7 @@ jobs: - name: Get report name id: reportName + if: always() run: | reportName=${{ matrix.command }} echo "reportName=${reportName//\:/_}" >> $GITHUB_OUTPUT @@ -137,15 +138,15 @@ jobs: - 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