-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
1,667 additions
and
615 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
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
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 |
---|---|---|
|
@@ -2,44 +2,56 @@ name: RadioDroid Instrumented Tests CI | |
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- master | ||
# pull_request: | ||
# branches: | ||
# - master | ||
|
||
jobs: | ||
integration-test: | ||
runs-on: macOS-10.15 | ||
test: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
api: [16, 21, 27, 29] | ||
api-level: [16, 27, 33] | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Restore Android virtual device | ||
uses: actions/cache@v3 | ||
id: avd-cache | ||
with: | ||
java-version: 1.8 | ||
- uses: malinskiy/action-android/install-sdk@release/0.1.0 | ||
- name: Instrumented tests | ||
uses: malinskiy/action-android/emulator-run-cmd@release/0.1.0 | ||
timeout-minutes: 35 | ||
path: | | ||
~/.android/avd/* | ||
~/.android/adb* | ||
key: RadioDroid-${{ runner.os }}-avd-api${{ matrix.api-level }} | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
cmd: ./gradlew connectedFreeDebugAndroidTest | ||
api: ${{ matrix.api }} | ||
tag: default | ||
abi: x86 | ||
disableAnimations: true | ||
hardwareProfile: Nexus 6 | ||
- name: Save instrumented tests output | ||
uses: actions/upload-artifact@master | ||
if: failure() | ||
java-version: '11' | ||
distribution: 'zulu' | ||
|
||
- name: Set up Android virtual device if not cached | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
if: steps.avd-cache.outputs.cache-hit != 'true' | ||
with: | ||
name: instrumented-tests-result | ||
path: build/reports/tests/instrumentedTests | ||
- name: Save logcat output | ||
uses: actions/upload-artifact@master | ||
if: failure() | ||
api-level: ${{ matrix.api-level }} | ||
arch: ${{ matrix.api-level < 21 && 'x86' || 'x86_64' }} | ||
target: ${{ matrix.api-level >= 30 && 'google_apis' || 'default' }} | ||
force-avd-creation: false | ||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: false | ||
script: echo "Generated AVD snapshot for caching." | ||
|
||
- name: Run instrumented tests on Android virtual device | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
name: logcat | ||
path: artifacts/logcat.log | ||
api-level: ${{ matrix.api-level }} | ||
arch: ${{ matrix.api-level < 21 && 'x86' || 'x86_64' }} | ||
target: ${{ matrix.api-level >= 30 && 'google_apis' || 'default' }} | ||
force-avd-creation: false | ||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: /Users/runner/Library/Android/sdk/platform-tools/adb uninstall net.programmierecke.radiodroid2.test; ./gradlew ${{ matrix.api-level < 26 && 'connectedFreeDebugAndroidTest' || matrix.api-level > 29 && 'installPlayDebugAndroidTest' || 'connectedCheck' }} |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<manifest xmlns:tools="http://schemas.android.com/tools" | ||
package="${applicationId}.test"> | ||
<manifest xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<uses-sdk tools:overrideLibrary="android_libs.ub_uiautomator" /> | ||
</manifest> |
Oops, something went wrong.