Skip to content

Commit

Permalink
run ci using gradle managed device
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasemde committed Dec 30, 2024
1 parent a719ed7 commit 4f245ef
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,26 +108,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# API 30+ emulators only have x86_64 system images.
- name: Get AVD info
uses: ./.github/actions/get-avd-info
id: avd-info
with:
api-level: ${{ matrix.api-level }}

- 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: Instrumentation tests
uses: reactivecircus/[email protected]
with:
api-level: ${{ matrix.api-level }}
arch: ${{ steps.avd-info.outputs.arch }}
target: ${{ steps.avd-info.outputs.target }}
script: ./gradlew connectedDebugAndroidTest
- name: Run device tests
run: ./gradlew api${{ matrix.api-level }}DebugAndroidTest --stacktrace

- name: Upload test results
if: always()
Expand Down

0 comments on commit 4f245ef

Please sign in to comment.