mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
ci: upload Android test results to Codecov (#3055)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
5dbc519943
commit
8bb3f4fadb
2 changed files with 8 additions and 0 deletions
1
.github/workflows/pull-request.yml
vendored
1
.github/workflows/pull-request.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
7
.github/workflows/reusable-android-test.yml
vendored
7
.github/workflows/reusable-android-test.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue