-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test-example-project workflow
- Loading branch information
1 parent
a07bbc4
commit ec0838d
Showing
1 changed file
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" |