From 8bb3f4fadb2f41198d3dad963c4662a7632de957 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Wed, 10 Sep 2025 15:06:30 -0500 Subject: [PATCH] ci: upload Android test results to Codecov (#3055) Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> --- .github/workflows/pull-request.yml | 1 + .github/workflows/reusable-android-test.yml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 092f6c8a5..c61631975 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -34,6 +34,7 @@ jobs: # upload_artifacts defaults to true, so no need to explicitly set secrets: GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} check-workflow-status: name: Check Workflow Status diff --git a/.github/workflows/reusable-android-test.yml b/.github/workflows/reusable-android-test.yml index c41ff3abf..ab3522760 100644 --- a/.github/workflows/reusable-android-test.yml +++ b/.github/workflows/reusable-android-test.yml @@ -16,6 +16,8 @@ on: secrets: GRADLE_ENCRYPTION_KEY: required: false + CODECOV_TOKEN: + required: true jobs: androidTest: @@ -64,6 +66,11 @@ jobs: emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -no-metrics -camera-back none disable-animations: true script: ./gradlew :app:connectedFdroidDebugAndroidTest :app:connectedGoogleDebugAndroidTest --configuration-cache --scan && ( killall -INT crashpad_handler || true ) + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} - name: Upload Test Results if: ${{ inputs.upload_artifacts }} uses: actions/upload-artifact@v4