[MT-1479] Moments API Implementation #248
Workflow file for this run
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: Kotlin | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
name: Run Unit Tests | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
api-level: [21, 29] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Unit tests | |
run: ./run_tests.sh | |
- name: Instrumented Tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
arch: x86 | |
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot-save -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
script: ./run_instrumented_tests.sh && ./verify_coverage.sh | |
- name: Upload Reports | |
continue-on-error: true | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Reports API ${{ matrix.api-level }} | |
path: reports/*.zip | |
# Create APK. To download APK file, click on Artifacts within the Actions tab | |
apk: | |
needs: test | |
name: Generate APK | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Build debug APK | |
run: bash ./gradlew assembleDebug --stacktrace --warning-mode all | |
- name: Upload APK | |
uses: actions/upload-artifact@v2 | |
with: | |
name: mobile | |
path: mobile/build/outputs/apk/debug/mobile-debug.apk |