update: update ui test ci #3
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
name: Android UI Test | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
ui-test: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v3 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Run compose ui tests | |
uses: reactivecircus/android-emulator-runner@v3 | |
with: | |
api-level: 33 | |
target: default | |
arch: x86 | |
profile: Nexus 10 | |
script: ./gradlew connectedCheck --stacktrace | |
- name: Upload test report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: instrumentation_test_report | |
path: app/build/reports/androidTests/connected/ |