Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.7k
release(core): 9.0.4#1156
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| name:'apps/automated/android' | |
| permissions: | |
| contents:read | |
| pull-requests:write | |
| on: | |
| push: | |
| branches: | |
| -main | |
| -'ci/**' | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| NX_CLOUD_ACCESS_TOKEN:${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| concurrency: | |
| group:${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress:true | |
| jobs: | |
| test-android: | |
| runs-on:ubuntu-latest | |
| steps: | |
| -uses:actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955# v4.3.0 | |
| -uses:actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903# v6.0.0 | |
| with: | |
| node-version:23.5.0 | |
| -name:Derive appropriate SHAs for base and head for `nx affected` commands | |
| uses:nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1# v4.3.3 | |
| with: | |
| main-branch-name:'main' | |
| -uses:actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165# v5.0.0 | |
| with: | |
| distribution:'temurin' | |
| java-version:'21' | |
| -name:Install Python | |
| uses:actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065# v5.6.0 | |
| with: | |
| python-version:'3' | |
| -name:Install NativeScript | |
| run:| | |
| python3 -m pip install --upgrade pip six | |
| npm i -g nativescript --ignore-scripts | |
| ns usage-reporting disable | |
| ns error-reporting disable | |
| -name:Setup | |
| run:npm run setup | |
| -name:Unit Tests | |
| run:npx nx run-many --target=test --configuration=ci --projects=core | |
| -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 tests on Android Emulator | |
| uses:reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed# v2.34.0 | |
| with: | |
| api-level:35 | |
| arch:x86_64 | |
| script:npx nx test apps-automated -c=android |