From c9ed908424fb6070f6bbc5414c153c7e84e69290 Mon Sep 17 00:00:00 2001 From: blue928sky Date: Sat, 18 Jan 2025 14:46:43 +0900 Subject: [PATCH] fix: Coverage report is not displayed Change-Id: I0fcb548c30c0cd8fce47fe70e086d43e90813e8d --- .github/workflows/Build.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 5a212bffb..f7a103249 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -201,14 +201,14 @@ jobs: heap-size: 600M script: ./gradlew connectedDemoDebugAndroidTest --daemon - - name: Run local tests (including Roborazzi) for the combined coverage report (only API 30) - if: matrix.api-level == 30 + - name: Run local tests (including Roborazzi) for the combined coverage report (only API 34) + if: matrix.api-level == 34 # There is no need to verify Roborazzi tests to generate coverage. run: ./gradlew testDemoDebugUnitTest -Proborazzi.test.verify=false # 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 30) - if: matrix.api-level == 30 + - name: Generate coverage reports for Debug variants (only API 34) + if: matrix.api-level == 34 run: ./gradlew createDemoDebugCombinedCoverageReport - name: Upload test reports @@ -218,8 +218,8 @@ jobs: name: test-reports-${{ matrix.api-level }} path: '**/build/reports/androidTests' - - name: Display local test coverage (only API 30) - if: matrix.api-level == 30 + - name: Display local test coverage (only API 34) + if: matrix.api-level == 34 id: jacoco uses: madrapps/jacoco-report@v1.7.1 with: @@ -230,8 +230,8 @@ jobs: ${{ github.workspace }}/**/build/reports/jacoco/**/*Report.xml token: ${{ secrets.GITHUB_TOKEN }} - - name: Upload local coverage reports (XML + HTML) (only API 30) - if: matrix.api-level == 30 + - name: Upload local coverage reports (XML + HTML) (only API 34) + if: matrix.api-level == 34 uses: actions/upload-artifact@v4 with: name: coverage-reports