Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
ci: move test report to its own workflow for better security
  • Loading branch information
edusperoni committed Jan 16, 2026
commit 9268f8fd544d9294f2a19fe3e2f9f2ce8d41c7a2
9 changes: 8 additions & 1 deletion .github/workflows/npm_release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: NPM Release
on:
push:
branches:
Expand Down Expand Up @@ -90,7 +91,7 @@ jobs:
with:
name: debug-symbols
path: test-app/runtime/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*

test:
name: Test
runs-on: macos-15-intel
Expand Down Expand Up @@ -143,6 +144,12 @@ jobs:
#target: google_apis
arch: ${{env.ANDROID_ABI}}
script: ./gradlew runtestsAndVerifyResults --stacktrace
- name: Upload Test Results
if: ${{ !cancelled() }} # run this step even if previous step failed
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: android-unit-test-results
path: test-app/dist/android_unit_test_results.xml
publish:
runs-on: ubuntu-latest
environment: npm-publish
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: Pull Request
on:
pull_request:

Expand Down Expand Up @@ -128,10 +129,9 @@ jobs:
#target: google_apis
arch: ${{env.ANDROID_ABI}}
script: ./gradlew runtestsAndVerifyResults --stacktrace
- name: Test Report
uses: dorny/test-reporter@b082adf0eced0765477756c2a610396589b8c637 # v2.5.0
- name: Upload Test Results
if: ${{ !cancelled() }} # run this step even if previous step failed
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: Android Runtime Tests
name: android-unit-test-results
path: test-app/dist/android_unit_test_results.xml
reporter: jest-junit # Format of test results
20 changes: 20 additions & 0 deletions .github/workflows/test_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Test Report"
on:
workflow_run:
workflows: ["Pull Request", "NPM Release"] # runs after Pull Request workflow
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@b082adf0eced0765477756c2a610396589b8c637 # v2.5.0
with:
name: Android Runtime Tests
artifact: android-unit-test-results # artifact name
path: test-app/dist/android_unit_test_results.xml
reporter: jest-junit # Format of test results
Loading