Yuki 2 weeks ago committed by GitHub
commit 14b5e4e7fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -18,7 +18,6 @@ jobs:
permissions: permissions:
contents: write contents: write
pull-requests: write
security-events: write security-events: write
timeout-minutes: 60 timeout-minutes: 60
@ -170,9 +169,13 @@ jobs:
androidTest: androidTest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 55 timeout-minutes: 55
permissions:
pull-requests: write
strategy: strategy:
matrix: matrix:
api-level: [26, 34] api-level: [ 26, 34 ]
steps: steps:
- name: Delete unnecessary tools 🔧 - name: Delete unnecessary tools 🔧
@ -223,14 +226,14 @@ jobs:
heap-size: 600M heap-size: 600M
script: ./gradlew connectedDemoDebugAndroidTest --daemon script: ./gradlew connectedDemoDebugAndroidTest --daemon
- name: Run local tests (including Roborazzi) for the combined coverage report (only API 30) - name: Run local tests (including Roborazzi) for the combined coverage report (only API 34)
if: matrix.api-level == 30 if: matrix.api-level == 34
# There is no need to verify Roborazzi tests to generate coverage. # 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 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 # Add `createProdDebugUnitTestCoverageReport` if we ever add JVM tests for prod
- name: Generate coverage reports for Debug variants (only API 30) - name: Generate coverage reports for Debug variants (only API 34)
if: matrix.api-level == 30 if: matrix.api-level == 34
run: ./gradlew createDemoDebugCombinedCoverageReport run: ./gradlew createDemoDebugCombinedCoverageReport
- name: Upload test reports - name: Upload test reports
@ -240,8 +243,8 @@ jobs:
name: test-reports-${{ matrix.api-level }} name: test-reports-${{ matrix.api-level }}
path: '**/build/reports/androidTests' path: '**/build/reports/androidTests'
- name: Display local test coverage (only API 30) - name: Display local test coverage (only API 34)
if: matrix.api-level == 30 if: matrix.api-level == 34
id: jacoco id: jacoco
uses: madrapps/jacoco-report@v1.7.1 uses: madrapps/jacoco-report@v1.7.1
with: with:
@ -252,8 +255,8 @@ jobs:
${{ github.workspace }}/**/build/reports/jacoco/**/*Report.xml ${{ github.workspace }}/**/build/reports/jacoco/**/*Report.xml
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload local coverage reports (XML + HTML) (only API 30) - name: Upload local coverage reports (XML + HTML) (only API 34)
if: matrix.api-level == 30 if: matrix.api-level == 34
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: coverage-reports name: coverage-reports

Loading…
Cancel
Save