Skip to content

Commit

Permalink
Fix: Instrumented tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsantos committed Jul 16, 2024
1 parent 3106d03 commit 46ddbc2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,20 @@ jobs:
- name: checkout
uses: actions/checkout@v4

- name: Enable KVM
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: Run instrumented tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: x86_64
profile: pixel_3_xl
profile: Nexus 6
ram-size: 4096M
disable-animations: true
script: ./gradlew connectedOoniStableFullDebugAndroidTest

- name: uploads test reports
Expand Down Expand Up @@ -185,4 +190,4 @@ jobs:
file: ooniDevFull/debug/app-ooni-dev-full-debug.apk
- name: Write Summary
run: |
echo "View this release in the Firebase console: ${{ steps.uploadArtifact.outputs.FIREBASE_CONSOLE_URI }}" >> $GITHUB_STEP_SUMMARY
echo "View this release in the Firebase console: ${{ steps.uploadArtifact.outputs.FIREBASE_CONSOLE_URI }}" >> $GITHUB_STEP_SUMMARY

0 comments on commit 46ddbc2

Please sign in to comment.