From 0c1a8c4c8ac10a68cf04b6a249e218971882789a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Alc=C3=A9rreca?= Date: Fri, 22 Mar 2024 10:13:53 +0100 Subject: [PATCH] Configures min-coverage values --- .github/workflows/Build.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 18e61b21e..44b014817 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -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