From a19bacc6ea4fde903e18cd668b06f1ec00229345 Mon Sep 17 00:00:00 2001 From: Jan Kobersky Date: Fri, 10 May 2024 11:20:02 +0200 Subject: [PATCH] Switched to ubuntu runner --- .github/workflows/build.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 10 +++++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f989e8..a8b0839 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ on: jobs: build: name: Build - runs-on: macos-latest + runs-on: ubuntu-latest steps: - name: Checkout the repo uses: actions/checkout@v2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3b8acd4..7f70ab8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ on: jobs: ktlint: name: ktlint - runs-on: macos-latest + runs-on: ubuntu-latest steps: - name: Checkout the repo uses: actions/checkout@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index addfd19..7a8b20c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ on: jobs: tests: name: Tests - runs-on: macos-latest + runs-on: ubuntu-latest steps: - name: Checkout the repo uses: actions/checkout@v2 @@ -33,9 +33,13 @@ jobs: OP_URL: ${{ secrets.TESTS_OP_URL }} IN_URL: ${{ secrets.TESTS_IN_URL }} run: echo -e tests.sdk.cloudServerUrl="$CL_URL"\\ntests.sdk.cloudServerLogin="$CL_LGN"\\ntests.sdk.cloudServerPassword="$CL_PWD"\\ntests.sdk.cloudApplicationId="$CL_AID"\\ntests.sdk.enrollmentServerUrl="$ER_URL"\\ntests.sdk.operationsServerUrl="$OP_URL"\\ntests.sdk.inboxServerUrl="$IN_URL"\\ntests.sdk.sdkConfig="$SDK_CONFIG" > configs/integration-tests.properties + - 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: Test the app (integration tests) uses: reactivecircus/android-emulator-runner@v2 with: - api-level: 34 - arch: arm64-v8a + api-level: 29 script: ./gradlew clean connectedAndroidTest --info