Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle Managed Devices CI start #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 12 additions & 26 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
api: [ 28 ]
abi: [ x86_64 ]
tag: [ 'default' ]
include:
# - api: 31
# abi: x86_64
# tag: 'google_apis'
- os: ubuntu-latest
api: 30
abi: x86_64
tag: 'google_apis'
steps:
- name: kvm support
run: |
Expand All @@ -40,29 +29,26 @@ jobs:
with:
distribution: 'adopt'
java-version: 17
- name: Install Android SDK
uses: hannesa2/action-android/[email protected]
- name: Build project
run: ./gradlew assemble
- name: Run instrumentation tests
uses: hannesa2/action-android/[email protected]
- uses: hannesa2/action-android/[email protected]
- run: sdkmanager platform-tools
- run: ./gradlew nexusOneApi30DebugAndroidTest
- name: Archive Espresso report
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
cmd: ./gradlew cAT --continue
api: ${{ matrix.api }}
tag: ${{ matrix.tag }}
abi: ${{ matrix.abi }}
cmdOptions: -noaudio -no-boot-anim -no-window
name: Moka-Espresso-report
path: sample/build/reports/androidTests/connected
- name: Archive Espresso results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: Moka-Espresso-${{ matrix.api }}-${{ matrix.abi }}-report
path: sample/build/reports/androidTests/connected
name: Moka-Espresso-result
path: sample/build/outputs/androidTest-results/managedDevice
- name: Archive screenshots
if: ${{ always() }}
uses: actions/[email protected]
with:
name: Moka-Screenshots-${{ matrix.api }}-${{ matrix.abi }}-report
name: Moka-Screenshots
path: |
sample/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected
sample/build/outputs/androidTest-results/connected
Expand All @@ -76,7 +62,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install JDK ${{ matrix.java_version }}
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
Expand Down
Loading