|
|
|
@ -192,13 +192,13 @@ jobs:
|
|
|
|
|
heap-size: 600M
|
|
|
|
|
script: ./gradlew connectedDemoDebugAndroidTest --daemon
|
|
|
|
|
|
|
|
|
|
- name: Run local tests (including Roborazzi) for the combined coverage report (only API 26)
|
|
|
|
|
if: matrix.api-level == 26
|
|
|
|
|
- name: Run local tests (including Roborazzi) for the combined coverage report (only API 30)
|
|
|
|
|
if: matrix.api-level == 30
|
|
|
|
|
run: ./gradlew testDemoDebugUnitTest # Add Prod if we ever add JVM tests for prod
|
|
|
|
|
|
|
|
|
|
# Add `createProdDebugUnitTestCoverageReport` if we ever add JVM tests for prod
|
|
|
|
|
- name: Generate coverage reports for Debug variants (only API 26)
|
|
|
|
|
if: matrix.api-level == 26
|
|
|
|
|
- name: Generate coverage reports for Debug variants (only API 30)
|
|
|
|
|
if: matrix.api-level == 30
|
|
|
|
|
run: ./gradlew createDemoDebugCombinedCoverageReport
|
|
|
|
|
|
|
|
|
|
- name: Upload test reports
|
|
|
|
@ -208,18 +208,20 @@ jobs:
|
|
|
|
|
name: test-reports-${{ matrix.api-level }}
|
|
|
|
|
path: '**/build/reports/androidTests'
|
|
|
|
|
|
|
|
|
|
- name: Display local test coverage (only API 26)
|
|
|
|
|
if: matrix.api-level == 26
|
|
|
|
|
- name: Display local test coverage (only API 30)
|
|
|
|
|
if: matrix.api-level == 30
|
|
|
|
|
id: jacoco
|
|
|
|
|
uses: madrapps/jacoco-report@v1.6.1
|
|
|
|
|
with:
|
|
|
|
|
title: Combined test coverage report
|
|
|
|
|
min-coverage-overall: 40
|
|
|
|
|
min-coverage-changed-files: 60
|
|
|
|
|
paths: |
|
|
|
|
|
${{ github.workspace }}/**/build/reports/jacoco/**/*Report.xml
|
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
- name: Upload local coverage reports (XML + HTML) (only API 26)
|
|
|
|
|
if: matrix.api-level == 26
|
|
|
|
|
- name: Upload local coverage reports (XML + HTML) (only API 30)
|
|
|
|
|
if: matrix.api-level == 30
|
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: coverage-reports
|
|
|
|
|