ci: upload Android test results to Codecov (#3055)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-09-10 15:06:30 -05:00 committed by GitHub
parent 5dbc519943
commit 8bb3f4fadb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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