Skip to content

Commit

Permalink
Update test-example-project workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thebhumilsoni committed Jun 7, 2024
1 parent a07bbc4 commit ec0838d
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions .github/workflows/test-example-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
example-project-unit-tests:
name: Run Example Project Unit Tests
runs-on: ubuntu-latest

steps:
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3.3.0
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
Expand All @@ -42,24 +42,39 @@ jobs:

example-project-instrumented-tests:
name: Run Example Project Instrumented Tests
runs-on: macos-latest
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [28]
timeout-minutes: 90

steps:
- 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
ls /dev/kvm
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3.3.0
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17

- name: Debug Build
run: ./gradlew :example:buildDebug

- name: Example Project Instrumented Tests
uses: reactivecircus/android-emulator-runner@v2
- name: "Run instrumented tests"
uses: reactivecircus/[email protected]
with:
api-level: 27
api-level: ${{ matrix.api-level }}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -timezone Australia/Melbourne -camera-back none
disable-animations: true
disable-spellchecker: true
profile: Nexus 6
arch: x86_64
ram-size: 4096M
heap-size: 512M
script: "support/scripts/example-instrumented-tests"

0 comments on commit ec0838d

Please sign in to comment.