diff --git a/.github/workflows/npm_release.yml b/.github/workflows/npm_release.yml index 4be63861d..1b2f13a16 100644 --- a/.github/workflows/npm_release.yml +++ b/.github/workflows/npm_release.yml @@ -210,6 +210,13 @@ jobs: with: name: android-unit-test-results path: test-app/dist/android_unit_test_results.xml + - name: Test report summary + if: ${{ !cancelled() }} + uses: mikepenz/action-junit-report@d9f48fc87bc235f7e214acf696ca5abc0a986f16 # v6.4.2 + with: + report_paths: test-app/dist/android_unit_test_results.xml + annotate_only: true + detailed_summary: true publish: runs-on: ubuntu-latest environment: npm-publish diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c4a2ad4f3..b9d73a4a9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -182,3 +182,12 @@ jobs: with: name: android-unit-test-results path: test-app/dist/android_unit_test_results.xml + - name: Test report summary + if: ${{ !cancelled() }} + # annotate_only keeps this usable from fork PRs: it reports via workflow + # commands and the step summary, so no checks:write token is needed + uses: mikepenz/action-junit-report@d9f48fc87bc235f7e214acf696ca5abc0a986f16 # v6.4.2 + with: + report_paths: test-app/dist/android_unit_test_results.xml + annotate_only: true + detailed_summary: true diff --git a/.github/workflows/test_report.yml b/.github/workflows/test_report.yml deleted file mode 100644 index defe05e91..000000000 --- a/.github/workflows/test_report.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: "Test Report" -on: - workflow_run: - workflows: - - Pull Request - - NPM Release - types: - - completed -permissions: - contents: read - actions: read - checks: write -jobs: - report: - runs-on: ubuntu-latest - steps: - - uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2 # v3.0.0 - with: - name: Android Runtime Tests - artifact: android-unit-test-results # artifact name - path: android_unit_test_results.xml - reporter: jest-junit # Format of test results