From 46ddbc23f59b7c15bffcd29b05838c1eb1c1c49e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Santos?= Date: Tue, 16 Jul 2024 11:14:44 +0100 Subject: [PATCH] Fix: Instrumented tests on CI --- .github/workflows/validate.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index c076c21be..1e8dc2c08 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 @@ -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 \ No newline at end of file + echo "View this release in the Firebase console: ${{ steps.uploadArtifact.outputs.FIREBASE_CONSOLE_URI }}" >> $GITHUB_STEP_SUMMARY