|
|
@ -168,45 +168,3 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: test-reports-${{ matrix.api-level }}
|
|
|
|
name: test-reports-${{ matrix.api-level }}
|
|
|
|
path: '**/build/reports/androidTests'
|
|
|
|
path: '**/build/reports/androidTests'
|
|
|
|
|
|
|
|
|
|
|
|
androidTest-GMD:
|
|
|
|
|
|
|
|
needs: build
|
|
|
|
|
|
|
|
runs-on: macOS-latest # enables hardware acceleration in the virtual machine
|
|
|
|
|
|
|
|
timeout-minutes: 90
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
|
|
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up JDK 17
|
|
|
|
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
distribution: 'zulu'
|
|
|
|
|
|
|
|
java-version: 17
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Setup Gradle
|
|
|
|
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Accept Android licenses
|
|
|
|
|
|
|
|
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses || true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build AndroidTest apps
|
|
|
|
|
|
|
|
run: ./gradlew packageDemoDebug packageDemoDebugAndroidTest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Run instrumented tests with GMD
|
|
|
|
|
|
|
|
run: ./gradlew ciDemoDebugAndroidTest --no-parallel --max-workers=1
|
|
|
|
|
|
|
|
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload test reports
|
|
|
|
|
|
|
|
if: success() || failure()
|
|
|
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
name: test-reports-GMD
|
|
|
|
|
|
|
|
path: '**/build/reports/androidTests'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Print disk space usage
|
|
|
|
|
|
|
|
if: failure()
|
|
|
|
|
|
|
|
run: df -h
|
|
|
|
|
|
|
|