Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: try self-hosted #1775

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -114,10 +114,14 @@ jobs:
- name: SBG tests
run: ./gradlew runSbgTests --stacktrace
- name: Run unit tests
uses: ReactiveCircus/android-emulator-runner@v2
with:
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