From 7bc35c6513e8d63d4426e35d0a877e46977be82d Mon Sep 17 00:00:00 2001 From: bvlion Date: Sat, 17 Feb 2024 15:17:11 +0900 Subject: [PATCH] setup ubuntu --- .github/workflows/pr-test.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-test.yaml b/.github/workflows/pr-test.yaml index bb5892d..dc75d25 100644 --- a/.github/workflows/pr-test.yaml +++ b/.github/workflows/pr-test.yaml @@ -4,11 +4,12 @@ on: pull_request: branches: - 'main' + workflow_dispatch: jobs: dependabot: - runs-on: macos-latest - if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' steps: - uses: actions/checkout@v4 @@ -28,6 +29,12 @@ jobs: - name: Set config files run: echo ${{ secrets.DEBUG_GOOGLE_SERVICES_JSON }} | base64 -d > androidApp/src/debug/google-services.json + - 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: Run Android UI Test uses: reactivecircus/android-emulator-runner@v2 with: @@ -36,7 +43,7 @@ jobs: arch: 'x86' profile: 'pixel' disable-animations: true - script: ./gradlew :androidApp:connectedDebugAndroidTest + script: ./gradlew :androidApp:connectedCheck - name: Run shared Test run: ./gradlew :shared:testDebugUnitTest