Skip to content

Fix: rootCoverageReport ignores androidTests coverage results when executeAndroidTests is false #231

Fix: rootCoverageReport ignores androidTests coverage results when executeAndroidTests is false

Fix: rootCoverageReport ignores androidTests coverage results when executeAndroidTests is false #231

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
timeout-minutes: 40
runs-on: ubuntu-latest
steps:
# See: https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: checkout
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 28
script: ./gradlew clean test --stacktrace
- name: upload coverage
uses: codecov/codecov-action@v4
with:
files: ./plugin/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.CODECOV_TOKEN }}