From a77ef074ebd4f063abeda7ca68cf6a0a2771d779 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Thu, 13 Jul 2023 01:29:23 +0200 Subject: [PATCH 1/4] ci: try self-hosted --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a2c844c83..c6b493256 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -13,7 +13,7 @@ env: jobs: build: name: Build - runs-on: macos-latest + runs-on: self-hosted outputs: npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }} npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }} From 0328beda93d8afa550fa918a127f3554f1217f24 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Thu, 13 Jul 2023 02:40:59 +0200 Subject: [PATCH 2/4] Update pull_request.yml --- .github/workflows/pull_request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c6b493256..d597fe40e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -76,7 +76,7 @@ jobs: path: dist/nativescript-android-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz test: name: Test - runs-on: macos-latest + runs-on: self-hosted needs: build steps: - uses: actions/checkout@v3 @@ -120,4 +120,4 @@ jobs: # this is needed on API 30+ #target: google_apis arch: ${{env.ANDROID_ABI}} - script: ./gradlew runtestsAndVerifyResults --stacktrace \ No newline at end of file + script: ./gradlew runtestsAndVerifyResults --stacktrace From d648077db004496227923e035623a0542e625460 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Thu, 13 Jul 2023 11:13:30 +0200 Subject: [PATCH 3/4] ci: try different flags --- .github/workflows/pull_request.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d597fe40e..c1eefe545 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -116,6 +116,9 @@ jobs: - name: Run unit tests uses: ReactiveCircus/android-emulator-runner@v2 with: + force-avd-creation: false + disable-animations: false + emulator-options: -noaudio -no-boot-anim -camera-back none api-level: ${{env.ANDROID_API}} # this is needed on API 30+ #target: google_apis From 9153aca8f28dbe2edbf3589dd3f8d004b58c38d6 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Thu, 13 Jul 2023 13:38:42 +0200 Subject: [PATCH 4/4] ci: try pre-running avd --- .github/workflows/pull_request.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c1eefe545..abe2e3144 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -114,13 +114,14 @@ jobs: - name: SBG tests run: ./gradlew runSbgTests --stacktrace - name: Run unit tests - uses: ReactiveCircus/android-emulator-runner@v2 - with: - force-avd-creation: false - disable-animations: false - emulator-options: -noaudio -no-boot-anim -camera-back none - api-level: ${{env.ANDROID_API}} - # this is needed on API 30+ - #target: google_apis - arch: ${{env.ANDROID_ABI}} - script: ./gradlew runtestsAndVerifyResults --stacktrace + run: ./gradlew runtestsAndVerifyResults --stacktrace +# uses: ReactiveCircus/android-emulator-runner@v2 +# with: +# force-avd-creation: false +# disable-animations: false +# emulator-options: -noaudio -no-boot-anim -camera-back none +# api-level: ${{env.ANDROID_API}} +# # this is needed on API 30+ +# #target: google_apis +# arch: ${{env.ANDROID_ABI}} +# script: ./gradlew runtestsAndVerifyResults --stacktrace