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